EntityType.php in Entity Browser 8.2
Same filename and directory in other branches
File
src/Plugin/EntityBrowser/WidgetValidation/EntityType.phpView 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
Name | Description |
---|---|
EntityType | Validates that each passed Entity is of the correct type. |