You are here

public function ResourceInterface::setFieldDefinitions in RESTful 7.2

Sets the field definitions.

Parameters

ResourceFieldCollectionInterface $field_definitions: The field definitions to set.

2 methods override ResourceInterface::setFieldDefinitions()
Resource::setFieldDefinitions in src/Plugin/resource/Resource.php
Sets the field definitions.
ResourceDecoratorBase::setFieldDefinitions in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
Sets the field definitions.

File

src/Plugin/resource/ResourceInterface.php, line 123
Contains \Drupal\restful\Plugin\resource\ResourceInterface.

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function setFieldDefinitions(ResourceFieldCollectionInterface $field_definitions);