function ConfigExistsConstraintValidator::create

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

Overrides ContainerInjectionInterface::create

File

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

Class

ConfigExistsConstraintValidator
Validates that a given config object exists.

Namespace

Drupal\Core\Config\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('config.factory'));
}

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