You are here

public function Resource::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/Resource.php, line 191
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function setFieldDefinitions(ResourceFieldCollectionInterface $field_definitions) {
  $this->fieldDefinitions = $field_definitions;
}