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

Breadcrumb

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

function Constraint::getRequiredOptions

Returns the name of the required options.

Override this method if you want to define required options.

Return value

string[]

See also

__construct()

1 call to Constraint::getRequiredOptions()
Constraint::normalizeOptions in vendor/symfony/validator/Constraint.php
22 methods override Constraint::getRequiredOptions()
All::getRequiredOptions in vendor/symfony/validator/Constraints/All.php
Returns the name of the required options.
AtLeastOneOf::getRequiredOptions in vendor/symfony/validator/Constraints/AtLeastOneOf.php
Returns the name of the required options.
BundleConstraint::getRequiredOptions in core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php
Returns the name of the required options.
CardScheme::getRequiredOptions in vendor/symfony/validator/Constraints/CardScheme.php
Returns the name of the required options.
Collection::getRequiredOptions in vendor/symfony/validator/Constraints/Collection.php
Returns the name of the required options.

... See full list

File

vendor/symfony/validator/Constraint.php, line 260

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function getRequiredOptions() : array {
    return [];
}

API Navigation

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