You are here

public function BundlePluginHandler::__construct in Entity API 8

Constructs a new BundlePluginHandler object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: The bundle plugin manager.

File

src/BundlePlugin/BundlePluginHandler.php, line 33

Class

BundlePluginHandler

Namespace

Drupal\entity\BundlePlugin

Code

public function __construct(EntityTypeInterface $entity_type, PluginManagerInterface $plugin_manager) {
  $this->entityType = $entity_type;
  $this->pluginManager = $plugin_manager;
}