function PluginExistsConstraint::__construct
Constructs a PluginExistsConstraint.
Parameters
\Drupal\Component\Plugin\PluginManagerInterface $pluginManager: The plugin manager associated with the constraint.
mixed|null $options: The options (as associative array) or the value for the default option (any other type).
array|null $groups: An array of validation groups.
mixed|null $payload: Domain-specific data attached to a constraint.
Overrides Constraint::__construct
File
-
core/
lib/ Drupal/ Core/ Plugin/ Plugin/ Validation/ Constraint/ PluginExistsConstraint.php, line 72
Class
- PluginExistsConstraint
- Checks if a plugin exists and optionally implements a particular interface.
Namespace
Drupal\Core\Plugin\Plugin\Validation\ConstraintCode
public function __construct(PluginManagerInterface $pluginManager, mixed $options = NULL, ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $groups, $payload);
}