You are here

public function DataProviderInterface::getMetadata in RESTful 7.2

Returns the metadata collection.

Data providers can add metadata reflecting the data gathering/setting process. This information is made available to formatters via the resource so extra metadata can be added to the output.

Return value

\Doctrine\Common\Collections\ArrayCollection The collection object.

3 methods override DataProviderInterface::getMetadata()
CacheDecoratedDataProvider::getMetadata in src/Plugin/resource/DataProvider/CacheDecoratedDataProvider.php
Returns the metadata collection.
DataProvider::getMetadata in src/Plugin/resource/DataProvider/DataProvider.php
Returns the metadata collection.
DataProviderDecorator::getMetadata in src/Plugin/resource/DataProvider/DataProviderDecorator.php
Returns the metadata collection.

File

src/Plugin/resource/DataProvider/DataProviderInterface.php, line 205
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderInterface.

Class

DataProviderInterface

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function getMetadata();