public function EntitySchemaSubscriber::__construct in Drupal 8
Same name in this branch
- 8 core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php \Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber::__construct()
- 8 core/modules/system/tests/modules/entity_test_update/src/EventSubscriber/EntitySchemaSubscriber.php \Drupal\entity_test_update\EventSubscriber\EntitySchemaSubscriber::__construct()
Same name and namespace in other branches
- 9 core/modules/workspaces/src/EventSubscriber/EntitySchemaSubscriber.php \Drupal\workspaces\EventSubscriber\EntitySchemaSubscriber::__construct()
Constructs a new EntitySchemaSubscriber.
Parameters
\Drupal\Core\Entity\EntityDefinitionUpdateManagerInterface $entityDefinitionUpdateManager: Definition update manager.
\Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository: Last definitions.
\Drupal\workspaces\WorkspaceManagerInterface $workspace_manager: The workspace manager.
File
- core/
modules/ workspaces/ src/ EventSubscriber/ EntitySchemaSubscriber.php, line 54
Class
- EntitySchemaSubscriber
- Defines a class for listening to entity schema changes.
Namespace
Drupal\workspaces\EventSubscriberCode
public function __construct(EntityDefinitionUpdateManagerInterface $entityDefinitionUpdateManager, EntityLastInstalledSchemaRepositoryInterface $entityLastInstalledSchemaRepository, WorkspaceManagerInterface $workspace_manager) {
$this->entityDefinitionUpdateManager = $entityDefinitionUpdateManager;
$this->entityLastInstalledSchemaRepository = $entityLastInstalledSchemaRepository;
$this->workspaceManager = $workspace_manager;
}