function EntityBundleExistsConstraint::getRequiredOptions

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\EntityBundleExistsConstraint::getRequiredOptions()

@todo Add method return type declaration.

Return value

array The names of the required options.

See also

https://www.drupal.org/project/drupal/issues/3425150

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraint.php, line 64

Class

EntityBundleExistsConstraint
Checks if a bundle exists on a certain content entity type.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public function getRequiredOptions() {
    return [
        'entityTypeId',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.