public function Constraint::getRequiredOptions

Returns the name of the required options

Override this method if you want to define required options.

@api

Return value

array

See also

__construct()

1 call to Constraint::getRequiredOptions()
Constraint::__construct in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraint.php
Initializes the constraint with options.
10 methods override Constraint::getRequiredOptions()
All::getRequiredOptions in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/All.php
Returns the name of the required options
BundleConstraint::getRequiredOptions in drupal/core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/BundleConstraint.php
Overrides Constraint::getRequiredOptions().
Callback::getRequiredOptions in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Callback.php
Returns the name of the required options
CardScheme::getRequiredOptions in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/CardScheme.php
Returns the name of the required options
Collection::getRequiredOptions in drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection.php
Returns the name of the required options

... See full list

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraint.php, line 184

Class

Constraint
Contains the properties of a constraint definition.

Namespace

Symfony\Component\Validator

Code

public function getRequiredOptions() {
  return array();
}