function FieldStorageCreateCheckSubscriber::__construct

Constructs the FieldStorageCreateCheckSubscriber object.

Parameters

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

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

bool $throwLogicExceptionOrDeprecationWarning: When the value is TRUE a LogicException will be thrown, when the value is FALSE a deprecation warning will be given. The value defaults to FALSE.

File

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

Class

FieldStorageCreateCheckSubscriber
Response subscriber to field storage events.

Namespace

Drupal\Core\Test\EventSubscriber

Code

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

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