Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
BundleConstraint.php
»
BundleConstraint
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
public property BundleConstraint::$bundle
The bundle option.
Type:
string|array
File
drupal/
core/
lib/
Drupal/
Core/
Validation/
Plugin/
Validation/
Constraint/
BundleConstraint.php
, line 40
Contains \Drupal\Core\Validation\Constraint\BundleConstraint.
Class
BundleConstraint
Checks if a value is a valid entity type.
Namespace
Drupal\Core\Validation\Plugin\Validation\Constraint
Code
public $bundle;