function EntityBundleOptions::__construct

Constructs a EntityBundleOptions object.

Parameters

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_bundle_info: The entity type bundle information manager.

File

src/TypedData/Options/EntityBundleOptions.php, line 42

Class

EntityBundleOptions
Options provider for entity bundles.

Namespace

Drupal\rules\TypedData\Options

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_bundle_info) {
    $this->entityTypeManager = $entity_type_manager;
    $this->entityBundleInfo = $entity_bundle_info;
}