You are here

public function ViewsEntitySchemaSubscriber::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php \Drupal\views\EventSubscriber\ViewsEntitySchemaSubscriber::__construct()

Constructs a ViewsEntitySchemaSubscriber.

Parameters

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

\Psr\Log\LoggerInterface $logger: A logger instance.

File

core/modules/views/src/EventSubscriber/ViewsEntitySchemaSubscriber.php, line 94

Class

ViewsEntitySchemaSubscriber
Reacts to changes on entity types to update all views entities.

Namespace

Drupal\views\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger) {
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
}