CommentTitle.php in Display Suite 8.4
Same filename and directory in other branches
Namespace
Drupal\ds\Plugin\DsField\CommentFile
src/Plugin/DsField/Comment/CommentTitle.phpView source
<?php
namespace Drupal\ds\Plugin\DsField\Comment;
use Drupal\ds\Plugin\DsField\Field;
/**
* Plugin that renders the title of a comment.
*
* @DsField(
* id = "comment_title",
* title = @Translation("Title"),
* entity_type = "comment",
* provider = "comment"
* )
*/
class CommentTitle extends Field {
/**
* {@inheritdoc}
*/
protected function entityRenderKey() {
return 'subject';
}
}
Classes
Name![]() |
Description |
---|---|
CommentTitle | Plugin that renders the title of a comment. |