public function Collection::getRequiredOptions

Returns the name of the required options

Override this method if you want to define required options.

@api

Return value

array

Overrides Constraint::getRequiredOptions

See also

__construct()

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Constraints/Collection.php, line 72

Class

Collection
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Constraints

Code

public function getRequiredOptions() {
  return array(
    'fields',
  );
}