You are here

DynamicEntityReferenceLabelFormatter.php in Dynamic Entity Reference 8.2

File

src/Plugin/Field/FieldFormatter/DynamicEntityReferenceLabelFormatter.php
View source
<?php

namespace Drupal\dynamic_entity_reference\Plugin\Field\FieldFormatter;

use Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceLabelFormatter;

/**
 * Plugin implementation of the 'dynamic entity reference label' formatter.
 *
 * @FieldFormatter(
 *   id = "dynamic_entity_reference_label",
 *   label = @Translation("Label"),
 *   description = @Translation("Display the label of the referenced entities."),
 *   field_types = {
 *     "dynamic_entity_reference"
 *   }
 * )
 */
class DynamicEntityReferenceLabelFormatter extends EntityReferenceLabelFormatter {
  use DynamicEntityReferenceFormatterTrait;

}

Classes

Namesort descending Description
DynamicEntityReferenceLabelFormatter Plugin implementation of the 'dynamic entity reference label' formatter.