function FieldStorageCreateCheckSubscriber::__construct
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Test/EventSubscriber/FieldStorageCreateCheckSubscriber.php \Drupal\Core\Test\EventSubscriber\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\EventSubscriberCode
public function __construct(protected Connection $connection, protected EntityTypeManagerInterface $entityTypeManager, private readonly 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.