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