You are here

public function FieldStorageSubscriber::__construct in Dynamic Entity Reference 8.2

FieldStorageSubscriber constructor.

Parameters

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\dynamic_entity_reference\Storage\IntColumnHandlerInterface $int_column_handler: The integer column handler.

\Drupal\Core\Database\Connection $connection: The database connection.

File

src/EventSubscriber/FieldStorageSubscriber.php, line 63

Class

FieldStorageSubscriber
Hands off field storage events to the integer column handler.

Namespace

Drupal\dynamic_entity_reference\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, IntColumnHandlerInterface $int_column_handler, Connection $connection) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityFieldManager = $entity_field_manager;
  $this->intColumnHandler = $int_column_handler;
  $this->connection = $connection;
}