You are here

public function ComplexDataConstraint::getDefaultOption in Zircon Profile 8.0

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

Returns the name of the default option.

Override this method to define a default option.

Return value

string

Overrides Constraint::getDefaultOption

See also

__construct()

File

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

Class

ComplexDataConstraint
Complex data constraint.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public function getDefaultOption() {
  return 'properties';
}