You are here

public function DsFieldBase::__construct in Display Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Plugin/DsField/DsFieldBase.php \Drupal\ds\Plugin\DsField\DsFieldBase::__construct()
  2. 8.2 src/Plugin/DsField/DsFieldBase.php \Drupal\ds\Plugin\DsField\DsFieldBase::__construct()

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.

Overrides PluginBase::__construct

8 calls to DsFieldBase::__construct()
BlockBase::__construct in src/Plugin/DsField/BlockBase.php
Constructs a Display Suite field plugin.
BundleField::__construct in src/Plugin/DsField/BundleField.php
Constructs a Display Suite field plugin.
Date::__construct in src/Plugin/DsField/Date.php
Constructs a Display Suite field plugin.
DynamicCopyField::__construct in src/Plugin/DsField/DynamicCopyField.php
Constructs a Display Suite field plugin.
Entity::__construct in src/Plugin/DsField/Entity.php
Constructs a Display Suite field plugin.

... See full list

8 methods override DsFieldBase::__construct()
BlockBase::__construct in src/Plugin/DsField/BlockBase.php
Constructs a Display Suite field plugin.
BundleField::__construct in src/Plugin/DsField/BundleField.php
Constructs a Display Suite field plugin.
Date::__construct in src/Plugin/DsField/Date.php
Constructs a Display Suite field plugin.
DynamicCopyField::__construct in src/Plugin/DsField/DynamicCopyField.php
Constructs a Display Suite field plugin.
Entity::__construct in src/Plugin/DsField/Entity.php
Constructs a Display Suite field plugin.

... See full list

File

src/Plugin/DsField/DsFieldBase.php, line 19

Class

DsFieldBase
Base class for all the ds plugins.

Namespace

Drupal\ds\Plugin\DsField

Code

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