You are here

class TargetBundles in Media Directories 8

Same name and namespace in other branches
  1. 3.x modules/media_directories_ui/src/Plugin/EntityBrowser/WidgetValidation/TargetBundles.php \Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetValidation\TargetBundles
  2. 2.x modules/media_directories_ui/src/Plugin/EntityBrowser/WidgetValidation/TargetBundles.php \Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetValidation\TargetBundles

Validates that each passed Entity is of the correct type.

Plugin annotation


@EntityBrowserWidgetValidation(
  id = "target_bundles",
  label = @Translation("Entity bundles validator"),
  data_type = "entity_reference",
  constraint = "Bundle"
)

Hierarchy

  • class \Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetValidation\TargetBundles extends \Drupal\entity_browser\WidgetValidationBase

Expanded class hierarchy of TargetBundles

File

modules/media_directories_ui/src/Plugin/EntityBrowser/WidgetValidation/TargetBundles.php, line 17

Namespace

Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetValidation
View source
class TargetBundles extends WidgetValidationBase {

}

Members