You are here

TargetBundles.php in Media Directories 8

File

modules/media_directories_ui/src/Plugin/EntityBrowser/WidgetValidation/TargetBundles.php
View source
<?php

namespace Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetValidation;

use Drupal\entity_browser\WidgetValidationBase;

/**
 * Validates that each passed Entity is of the correct type.
 *
 * @EntityBrowserWidgetValidation(
 *   id = "target_bundles",
 *   label = @Translation("Entity bundles validator"),
 *   data_type = "entity_reference",
 *   constraint = "Bundle"
 * )
 */
class TargetBundles extends WidgetValidationBase {

}

Classes

Namesort descending Description
TargetBundles Validates that each passed Entity is of the correct type.