function FieldStorageCreateCheckSubscriber::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Test/EventSubscriber/FieldStorageCreateCheckSubscriber.php \Drupal\Core\Test\EventSubscriber\FieldStorageCreateCheckSubscriber::__construct()

File

core/lib/Drupal/Core/Test/EventSubscriber/FieldStorageCreateCheckSubscriber.php, line 30

Class

FieldStorageCreateCheckSubscriber
Response subscriber to field storage events.

Namespace

Drupal\Core\Test\EventSubscriber

Code

public function __construct(protected Connection $connection, protected EntityTypeManagerInterface $entityTypeManager) {
  $this->schema = $this->connection
    ->schema();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.