1 select.inc public SelectQueryExtender::addMetaData($key, $object)

Adds additional metadata to the query.

Often, a query may need to provide additional contextual data to alter hooks. Alter hooks may then use that information to decide if and how to take action.

Parameters

string $key: The unique identifier for this piece of metadata. Must be a string that follows the same rules as any other PHP identifier.

mixed $object: The additional data to add to the query. May be any valid PHP variable.

Return value

QueryAlterableInterface: The called object.

Overrides QueryAlterableInterface::addMetaData

File

core/includes/database/select.inc, line 656
Contains classes and interfaces for Select queries.

Class

SelectQueryExtender
The base extender class for Select queries.

Code

public function addMetaData($key, $object) {
  $this->query->addMetaData($key, $object);
  return $this;
}