function ExtensionExistsConstraintValidator::__construct
Same name in other branches
- 11.x core/lib/Drupal/Core/Extension/Plugin/Validation/Constraint/ExtensionExistsConstraintValidator.php \Drupal\Core\Extension\Plugin\Validation\Constraint\ExtensionExistsConstraintValidator::__construct()
Constructs a ExtensionExistsConstraintValidator object.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler service.
File
-
core/
lib/ Drupal/ Core/ Extension/ Plugin/ Validation/ Constraint/ ExtensionExistsConstraintValidator.php, line 41
Class
- ExtensionExistsConstraintValidator
- Validates that a given extension exists.
Namespace
Drupal\Core\Extension\Plugin\Validation\ConstraintCode
public function __construct(ModuleHandlerInterface $module_handler, ThemeHandlerInterface $theme_handler) {
$this->moduleHandler = $module_handler;
$this->themeHandler = $theme_handler;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.