You are here

public function BundleConstraint::getDefaultOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint::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/Entity/Plugin/Validation/Constraint/BundleConstraint.php, line 53
Contains \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint.

Class

BundleConstraint
Checks if a value is a valid entity type.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

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