You are here

public function Base::__construct in Field Permissions 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/FieldPermissionType/Base.php \Drupal\field_permissions\Plugin\FieldPermissionType\Base::__construct()

Constructs the plugin.

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.

\Drupal\field\FieldStorageConfigInterface $field_storage: The field storage.

Overrides PluginBase::__construct

File

src/Plugin/FieldPermissionType/Base.php, line 36

Class

Base
An abstract implementation of FieldPermissionTypeInterface.

Namespace

Drupal\field_permissions\Plugin\FieldPermissionType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FieldStorageConfigInterface $field_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->fieldStorage = $field_storage;
}