You are here

public function DataProviderDecorator::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.

Overrides DataProviderInterface::getMetadata

File

src/Plugin/resource/DataProvider/DataProviderDecorator.php, line 224
Contains \Drupal\restful\Plugin\resource\DataProvider\DataProviderDecorator.

Class

DataProviderDecorator

Namespace

Drupal\restful\Plugin\resource\DataProvider

Code

public function getMetadata() {
  return $this->decorated
    ->getMetadata();
}