function ConfigExistsConstraintValidator::__construct

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php \Drupal\Core\Config\Plugin\Validation\Constraint\ConfigExistsConstraintValidator::__construct()
  2. 10 core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php \Drupal\Core\Config\Plugin\Validation\Constraint\ConfigExistsConstraintValidator::__construct()

Constructs a ConfigExistsConstraintValidator object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service.

File

core/lib/Drupal/Core/Config/Plugin/Validation/Constraint/ConfigExistsConstraintValidator.php, line 25

Class

ConfigExistsConstraintValidator
Validates that a given config object exists.

Namespace

Drupal\Core\Config\Plugin\Validation\Constraint

Code

public function __construct(protected ConfigFactoryInterface $configFactory) {
}

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