You are here

public function BundleField::__construct in Display Suite 8.4

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

Constructs a Display Suite field plugin.

Parameters

$configuration:

$plugin_id:

$plugin_definition:

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info:

Overrides DsFieldBase::__construct

File

src/Plugin/DsField/BundleField.php, line 33

Class

BundleField
Defines a generic bundle field.

Namespace

Drupal\ds\Plugin\DsField

Code

public function __construct($configuration, $plugin_id, $plugin_definition, EntityTypeBundleInfoInterface $entity_type_bundle_info) {
  $this->entityTypeBundleInfo = $entity_type_bundle_info;
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}