You are here

public function ResourceInterface::setPluginDefinition in RESTful 7.2

Sets the plugin definition to the provided array.

Parameters

array $plugin_definition: Definition array to set manually.

2 methods override ResourceInterface::setPluginDefinition()
Resource::setPluginDefinition in src/Plugin/resource/Resource.php
Sets the plugin definition to the provided array.
ResourceDecoratorBase::setPluginDefinition in src/Plugin/resource/Decorators/ResourceDecoratorBase.php
This is a decorated resource, set proxy the request until you reach the annotated resource.

File

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

Class

ResourceInterface
Interface ResourceInterface.

Namespace

Drupal\restful\Plugin\resource

Code

public function setPluginDefinition(array $plugin_definition);