Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BundleConstraint.php

function BundleConstraint::getRequiredOptions

Overrides Constraint::getRequiredOptions

File

core/lib/Drupal/Core/Entity/Plugin/Validation/Constraint/BundleConstraint.php, line 59

Class

BundleConstraint
Checks if a value is a valid entity type.

Namespace

Drupal\Core\Entity\Plugin\Validation\Constraint

Code

public function getRequiredOptions() : array {
    return [
        'bundle',
    ];
}
RSS feed
Powered by Drupal