You are here

public function HeartbeatEntityQuery::addMetaData in Heartbeat 8

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

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

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

Return value

\Drupal\Core\Database\Query\AlterableInterface The called object.

Overrides AlterableInterface::addMetaData

File

src/HeartbeatEntityQuery.php, line 94

Class

HeartbeatEntityQuery
Created by IntelliJ IDEA. User: logicp Date: 5/28/17 Time: 1:37 PM

Code

public function addMetaData($key, $object) {

  // TODO: Implement addMetaData() method.
}