function ExtensionExistsConstraintValidator::create

Same name in other branches
  1. 10 core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraintValidator.php \Drupal\Core\Extension\Plugin\Validation\Constraint\ExtensionExistsConstraintValidator::create()

Overrides ContainerInjectionInterface::create

File

core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraintValidator.php, line 49

Class

ExtensionExistsConstraintValidator
Validates that a given extension exists.

Namespace

Drupal\Core\Extension\Plugin\Validation\Constraint

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('module_handler'), $container->get('theme_handler'));
}

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