public function ResourceDecoratorBase::setFieldDefinitions in RESTful 7.2
Sets the field definitions.
Parameters
ResourceFieldCollectionInterface $field_definitions: The field definitions to set.
Overrides ResourceInterface::setFieldDefinitions
File
- src/
Plugin/ resource/ Decorators/ ResourceDecoratorBase.php, line 319 - Contains \Drupal\restful\Plugin\resource\Decorators\ResourceDecoratorBase.
Class
- ResourceDecoratorBase
- Class ResourceDecoratorBase.
Namespace
Drupal\restful\Plugin\resource\DecoratorsCode
public function setFieldDefinitions(ResourceFieldCollectionInterface $field_definitions) {
return $this->subject
->setFieldDefinitions($field_definitions);
}