DynamicEntityReferenceLabelFormatter.php in Dynamic Entity Reference 8.2
Same filename and directory in other branches
File
src/Plugin/Field/FieldFormatter/DynamicEntityReferenceLabelFormatter.phpView 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
Name | Description |
---|---|
DynamicEntityReferenceLabelFormatter | Plugin implementation of the 'dynamic entity reference label' formatter. |