Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PluginExistsConstraint.php

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

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal