You are here

public function ComplexDataConstraint::getRequiredOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\ComplexDataConstraint::getRequiredOptions()

Returns the name of the required options.

Override this method if you want to define required options.

Return value

array

Overrides Constraint::getRequiredOptions

See also

__construct()

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php, line 62
Contains \Drupal\Core\Validation\Plugin\Validation\Constraint\ComplexDataConstraint.

Class

ComplexDataConstraint
Complex data constraint.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

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