You are here

public function Resource::__construct in RESTful 7.2

Constructs a Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

1 call to Resource::__construct()
ResourceEntity::__construct in src/Plugin/resource/ResourceEntity.php
Constructs a Drupal\Component\Plugin\PluginBase object.
1 method overrides Resource::__construct()
ResourceEntity::__construct in src/Plugin/resource/ResourceEntity.php
Constructs a Drupal\Component\Plugin\PluginBase object.

File

src/Plugin/resource/Resource.php, line 85
Contains \Drupal\restful\Plugin\resource\Resource.

Class

Resource

Namespace

Drupal\restful\Plugin\resource

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->fieldDefinitions = ResourceFieldCollection::factory($this
    ->processPublicFields($this
    ->publicFields()), $this
    ->getRequest());
  $this
    ->initAuthenticationManager();
}