You are here

public function ResourceFieldBase::setResource in RESTful 7.2

Parameters

array $resource:

Overrides ResourceFieldInterface::setResource

1 call to ResourceFieldBase::setResource()
ResourceField::addDefaults in src/Plugin/resource/Field/ResourceField.php
Adds the default values to the definitions array.

File

src/Plugin/resource/Field/ResourceFieldBase.php, line 259
Contains \Drupal\restful\Plugin\resource\Field\ResourceFieldBase.

Class

ResourceFieldBase

Namespace

Drupal\restful\Plugin\resource\Field

Code

public function setResource($resource) {
  $this->resource = $resource;
}