EntityBundleListener::__construct

public EntityBundleListener::__construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, ModuleHandlerInterface $module_handler) Constructs a new EntityBundleListener. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager. \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle info. \Drupal\Core

EntityBundleListener::onBundleDelete

public EntityBundleListener::onBundleDelete($bundle, $entity_type_id) Reacts to a bundle being deleted. This method runs before fields are deleted. Parameters string $bundle: The name of the bundle being deleted. string $entity_type_id: The entity type to which the bundle is bound; e.g. 'node' or 'user'. Overrides EntityBundleListenerInterface::onBundleDelete File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 76 Class EntityBundleListener Reacts to entity bundle CRUD on behal

EntityBundleListener::onBundleCreate

public EntityBundleListener::onBundleCreate($bundle, $entity_type_id) Reacts to a bundle being created. Parameters string $bundle: The name of the bundle created. string $entity_type_id: The entity type to which the bundle is bound; e.g. 'node' or 'user'. Overrides EntityBundleListenerInterface::onBundleCreate File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 62 Class EntityBundleListener Reacts to entity bundle CRUD on behalf of the Entity system. Namespace Drupal\Core\E

EntityBundleListener::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 38 Class EntityBundleListener Reacts to entity bundle CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $moduleHandler;

EntityBundleListener::$entityTypeManager

The entity type manager. Type: \Drupal\Core\Entity\EntityTypeManagerInterface File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 17 Class EntityBundleListener Reacts to entity bundle CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $entityTypeManager;

EntityBundleListener::$entityTypeBundleInfo

The entity type bundle info. Type: \Drupal\Core\Entity\EntityTypeBundleInfoInterface File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 24 Class EntityBundleListener Reacts to entity bundle CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $entityTypeBundleInfo;

EntityBundleListener::$entityFieldManager

The entity field manager. Type: \Drupal\Core\Entity\EntityFieldManagerInterface File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 31 Class EntityBundleListener Reacts to entity bundle CRUD on behalf of the Entity system. Namespace Drupal\Core\Entity Code protected $entityFieldManager;

EntityBundleListener

Reacts to entity bundle CRUD on behalf of the Entity system. Hierarchy class \Drupal\Core\Entity\EntityBundleListener implements EntityBundleListenerInterface File core/lib/Drupal/Core/Entity/EntityBundleListener.php, line 10 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityBundleListener::$entityFieldManager protected property The entity field manager. EntityBundleListener::$entityTypeBundleInfo protected property The entity type bundle

EntityAutocompleteMatcher::__construct

public EntityAutocompleteMatcher::__construct(SelectionPluginManagerInterface $selection_manager) Constructs a EntityAutocompleteMatcher object. Parameters \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface $selection_manager: The entity reference selection handler plugin manager. File core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php, line 27 Class EntityAutocompleteMatcher Matcher class to get autocompletion results for entity reference. Namespace Dr

EntityAutocompleteMatcher::getMatches

public EntityAutocompleteMatcher::getMatches($target_type, $selection_handler, $selection_settings, $string = '') Gets matched labels based on a given search string. Parameters string $target_type: The ID of the target entity type. string $selection_handler: The plugin ID of the entity reference selection handler. array $selection_settings: An array of settings that will be passed to the selection handler. string $string: (optional) The label of the entity to query by. Return value array An a