function ConfigExistsConstraintValidator::__construct
Same name in other branches
- 11.x 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 $config_factory: The config factory service.
File
-
core/
lib/ Drupal/ Core/ Config/ Plugin/ Validation/ Constraint/ ConfigExistsConstraintValidator.php, line 31
Class
- ConfigExistsConstraintValidator
- Validates that a given config object exists.
Namespace
Drupal\Core\Config\Plugin\Validation\ConstraintCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->configFactory = $config_factory;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.