dynamic_entity_reference-8.x-1.x-dev/src/Plugin/Field/FieldFormatter/DynamicEntityReferenceLabelFormatter.php
src/Plugin/Field/FieldFormatter/DynamicEntityReferenceLabelFormatter.php
<?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;
}
