You are here

public function DsFieldTemplateBase::__construct in Display Suite 8.4

Same name and namespace in other branches
  1. 8.2 src/Plugin/DsFieldTemplate/DsFieldTemplateBase.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateBase::__construct()
  2. 8.3 src/Plugin/DsFieldTemplate/DsFieldTemplateBase.php \Drupal\ds\Plugin\DsFieldTemplate\DsFieldTemplateBase::__construct()

Constructs a Display Suite field plugin.

Overrides PluginBase::__construct

File

src/Plugin/DsFieldTemplate/DsFieldTemplateBase.php, line 24

Class

DsFieldTemplateBase
Base class for all the ds plugins.

Namespace

Drupal\ds\Plugin\DsFieldTemplate

Code

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