You are here

TaxonomyTermTitle.php in Display Suite 8.4

File

src/Plugin/DsField/Taxonomy/TaxonomyTermTitle.php
View source
<?php

namespace Drupal\ds\Plugin\DsField\Taxonomy;

use Drupal\ds\Plugin\DsField\Title;

/**
 * Plugin that renders the title of a term.
 *
 * @DsField(
 *   id = "taxonomy_term_title",
 *   title = @Translation("Name"),
 *   entity_type = "taxonomy_term",
 *   provider = "taxonomy"
 * )
 */
class TaxonomyTermTitle extends Title {

  /**
   * {@inheritdoc}
   */
  public function entityRenderKey() {
    return 'name';
  }

}

Classes

Namesort descending Description
TaxonomyTermTitle Plugin that renders the title of a term.