function ExtensionExistsConstraint::__construct
Attributes
#[HasNamedArguments]
File
-
core/
lib/ Drupal/ Core/ Extension/ Plugin/ Validation/ Constraint/ ExtensionExistsConstraint.php, line 28
Class
- ExtensionExistsConstraint
- Checks that the value is the name of an installed extension.
Namespace
Drupal\Core\Extension\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, ?string $type = NULL, public string $moduleMessage = "Module '@name' is not installed.", public string $themeMessage = "Theme '@name' is not installed.", ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
$this->type = $type ?? $this->type;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.