You are here

public function BundleField::__construct in Display Suite 8.2

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

Constructs a DsEntityRow object.

Parameters

string $base_plugin_id: The base plugin ID.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.

File

src/Plugin/Derivative/BundleField.php, line 44

Class

BundleField
Provides a derivative for bundle fields.

Namespace

Drupal\ds\Plugin\Derivative

Code

public function __construct($base_plugin_id, EntityTypeManagerInterface $entity_type_manager) {
  $this->basePluginId = $base_plugin_id;
  $this->entityTypeManager = $entity_type_manager;
}