3 namespace Drupal\entity_reference_revisions\Plugin\DataType;
5 use Drupal\Core\TypedData\ComplexDataInterface;
6 use Drupal\Core\Entity\Plugin\DataType\EntityAdapter;
9 * Defines the "entity" data type.
11 * Instances of this class wrap entity objects and allow to deal with entities
12 * based upon the Typed Data API.
14 * In addition to the "entity" data type, this exposes derived
15 * "entity:$entity_type" and "entity:$entity_type:$bundle" data types.
18 * id = "entity_revision",
19 * label = @Translation("Entity Revision"),
20 * description = @Translation("All kind of entities with revision information, e.g. nodes, comments or users."),
21 * deriver = "\Drupal\Core\Entity\Plugin\DataType\Deriver\EntityDeriver",
22 * definition_class = "\Drupal\entity_reference_revisions\TypedData\EntityRevisionDataDefinition"
25 class EntityRevisionsAdapter extends EntityAdapter implements \IteratorAggregate, ComplexDataInterface {