Drupal 8  8.0.2
BundleConfigImportValidate Class Reference
Inheritance diagram for BundleConfigImportValidate:

Public Member Functions

 __construct (ConfigManagerInterface $config_manager, EntityManagerInterface $entity_manager)
 
 onConfigImporterValidate (ConfigImporterEvent $event)
 
- Public Member Functions inherited from ConfigImportValidateEventSubscriberBase
 onConfigImporterValidate (ConfigImporterEvent $event)
 

Protected Attributes

 $configManager
 
 $entityManager
 

Additional Inherited Members

- Static Public Member Functions inherited from ConfigImportValidateEventSubscriberBase
static getSubscribedEvents ()
 

Detailed Description

Entity config importer validation event subscriber.

Constructor & Destructor Documentation

__construct ( ConfigManagerInterface  $config_manager,
EntityManagerInterface  $entity_manager 
)

Constructs the event subscriber.

Parameters
\Drupal\Core\Config\ConfigManagerInterface$config_managerThe config manager
\Drupal\Core\Entity\EntityManagerInterface$entity_managerThe entity manager.

References Drupal\entityManager().

Here is the call graph for this function:

Member Function Documentation

onConfigImporterValidate ( ConfigImporterEvent  $event)

Ensures bundles that will be deleted are not in use.

Parameters
\Drupal\Core\Config\ConfigImporterEvent$eventThe config import event.

References Drupal\entityManager(), ConfigImporterEvent\getChangelist(), ConfigImporterEvent\getConfigImporter(), ConfigEntityStorage\getIDFromConfigName(), and t().

Here is the call graph for this function:


The documentation for this class was generated from the following file: