function AlterableInterface::getMetaData

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Query/AlterableInterface.php \Drupal\Core\Database\Query\AlterableInterface::getMetaData()
  2. 8.9.x core/lib/Drupal/Core/Database/Query/AlterableInterface.php \Drupal\Core\Database\Query\AlterableInterface::getMetaData()
  3. 10 core/lib/Drupal/Core/Database/Query/AlterableInterface.php \Drupal\Core\Database\Query\AlterableInterface::getMetaData()

Retrieves a given piece of metadata.

Parameters

$key: The unique identifier for the piece of metadata to retrieve.

Return value

mixed The previously attached metadata object, or NULL if one doesn't exist.

3 methods override AlterableInterface::getMetaData()
QueryBase::getMetaData in core/lib/Drupal/Core/Entity/Query/QueryBase.php
Retrieves a given piece of metadata.
Select::getMetaData in core/lib/Drupal/Core/Database/Query/Select.php
Retrieves a given piece of metadata.
SelectExtender::getMetaData in core/lib/Drupal/Core/Database/Query/SelectExtender.php
Retrieves a given piece of metadata.

File

core/lib/Drupal/Core/Database/Query/AlterableInterface.php, line 93

Class

AlterableInterface
Interface for a query that can be manipulated via an alter hook.

Namespace

Drupal\Core\Database\Query

Code

public function getMetaData($key);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.