public function CacheDecoratedDataProvider::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/ CacheDecoratedDataProvider.php, line 268 - Contains \Drupal\restful\Plugin\resource\DataProvider\CacheDecoratedDataProvider.
Class
- CacheDecoratedDataProvider
- Class CacheDecoratedDataProvider.
Namespace
Drupal\restful\Plugin\resource\DataProviderCode
public function getMetadata() {
return $this->subject
->getMetadata();
}