You are here

EntityType.php in Entity Browser 8.2

Same filename and directory in other branches
  1. 8 src/Plugin/EntityBrowser/WidgetValidation/EntityType.php

File

src/Plugin/EntityBrowser/WidgetValidation/EntityType.php
View source
<?php

namespace Drupal\entity_browser\Plugin\EntityBrowser\WidgetValidation;

use Drupal\entity_browser\WidgetValidationBase;

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

}

Classes

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