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.
File
-
vendor/
symfony/ validator/ Constraint.php, line 260
Class
- Constraint
- Contains the properties of a constraint definition.
Namespace
Symfony\Component\ValidatorCode
public function getRequiredOptions() : array {
return [];
}