CommentManager::addBodyField

public CommentManager::addBodyField($comment_type_id) Creates a comment_body field. Parameters string $comment_type: The comment bundle. Overrides CommentManagerInterface::addBodyField File core/modules/comment/src/CommentManager.php, line 113 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code public function addBodyField($comment_type_id) { if (!FieldConfig::loadByName('comment', $comment_type_id, 'comment_body'))

CommentManager::$userConfig

The user settings config object. Type: \Drupal\Core\Config\Config File core/modules/comment/src/CommentManager.php, line 53 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $userConfig;

CommentManager::$queryFactory

The entity query factory. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/comment/src/CommentManager.php, line 39 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $queryFactory;

CommentManager::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/comment/src/CommentManager.php, line 60 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $moduleHandler;

CommentManager::$entityManager

The entity manager service. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/comment/src/CommentManager.php, line 32 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $entityManager;

CommentManager::$currentUser

The current user. Type: \Drupal\Core\Session\AccountInterface File core/modules/comment/src/CommentManager.php, line 67 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $currentUser;

CommentManager::$authenticatedCanPostComments

Whether the \Drupal\user\RoleInterface::AUTHENTICATED_ID can post comments. Type: bool File core/modules/comment/src/CommentManager.php, line 46 Class CommentManager Comment manager contains common functions to manage comment fields. Namespace Drupal\comment Code protected $authenticatedCanPostComments;

CommentManager

Comment manager contains common functions to manage comment fields. Hierarchy class \Drupal\comment\CommentManager implements CommentManagerInterface uses UrlGeneratorTrait, StringTranslationTrait File core/modules/comment/src/CommentManager.php, line 23 Namespace Drupal\comment Members Name Modifiers Type Description CommentManager::$authenticatedCanPostComments protected property Whether the \Drupal\user\RoleInterface::AUTHENTICATED_ID can post comments. CommentManag

CommentLinkBuilderInterface::buildCommentedEntityLinks

public CommentLinkBuilderInterface::buildCommentedEntityLinks(FieldableEntityInterface $entity, array &$context) Builds links for the given entity. Parameters \Drupal\Core\Entity\FieldableEntityInterface $entity: Entity for which the links are being built. array $context: Array of context passed from the entity view builder. Return value array Array of entity links. File core/modules/comment/src/CommentLinkBuilderInterface.php, line 25 Class CommentLinkBuilderInterface Defines an int

CommentLinkBuilderInterface

Defines an interface for building comment links on a commented entity. Comment links include 'log in to post new comment', 'add new comment' etc. Hierarchy interface \Drupal\comment\CommentLinkBuilderInterface File core/modules/comment/src/CommentLinkBuilderInterface.php, line 12 Namespace Drupal\comment Members Name Modifiers Type Description CommentLinkBuilderInterface::buildCommentedEntityLinks public function Builds links for the given entity.