function PluginExistsConstraint::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Plugin/Plugin/Validation/Constraint/PluginExistsConstraint.php \Drupal\Core\Plugin\Plugin\Validation\Constraint\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.

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\Constraint

Code

public function __construct(PluginManagerInterface $pluginManager, mixed $options = NULL, ?array $groups = NULL, mixed $payload = NULL) {
    parent::__construct($options, $groups, $payload);
}

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