You are here

BlockTitle.php in Display Suite 8.4

Same filename and directory in other branches
  1. 8.3 src/Plugin/DsField/Block/BlockTitle.php

File

src/Plugin/DsField/Block/BlockTitle.php
View source
<?php

namespace Drupal\ds\Plugin\DsField\Block;

use Drupal\ds\Plugin\DsField\Title;

/**
 * Plugin that renders the title of a block.
 *
 * @DsField(
 *   id = "block_title",
 *   title = @Translation("Title"),
 *   entity_type = "block_content",
 *   provider = "block_content"
 * )
 */
class BlockTitle extends Title {

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

}

Classes

Namesort descending Description
BlockTitle Plugin that renders the title of a block.