You are here

public function BundleConstraint::getRequiredOptions in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php \Drupal\Core\Entity\Plugin\Validation\Constraint\BundleConstraint::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/Entity/Plugin/Validation/Constraint/BundleConstraint.php, line 60
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 getRequiredOptions() {
  return array(
    'bundle',
  );
}