CommentLazyBuilders::buildLinks

protected CommentLazyBuilders::buildLinks(CommentInterface $entity, EntityInterface $commented_entity) Build the default links (reply, edit, delete …) for a comment. Parameters \Drupal\comment\CommentInterface $entity: The comment object. \Drupal\Core\Entity\EntityInterface $commented_entity: The entity to which the comment is attached. Return value array An array that can be processed by drupal_pre_render_links(). File core/modules/comment/src/CommentLazyBuilders.php, line 164 Class Comm

CommentLazyBuilders::$renderer

The renderer service. Type: \Drupal\Core\Render\RendererInterface File core/modules/comment/src/CommentLazyBuilders.php, line 59 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $renderer;

CommentLazyBuilders::renderForm

public CommentLazyBuilders::renderForm($commented_entity_type_id, $commented_entity_id, $field_name, $comment_type_id) #lazy_builder callback; builds the comment form. Parameters string $commented_entity_type_id: The commented entity type ID. string $commented_entity_id: The commented entity ID. string $field_name: The comment field name. string $comment_type_id: The comment type ID. Return value array A renderable array containing the comment form. File core/modules/comment/src/CommentLazyBu

CommentLazyBuilders::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/comment/src/CommentLazyBuilders.php, line 52 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $moduleHandler;

CommentLazyBuilders

Defines a service for comment #lazy_builder callbacks. Hierarchy class \Drupal\comment\CommentLazyBuilders File core/modules/comment/src/CommentLazyBuilders.php, line 17 Namespace Drupal\comment Members Name Modifiers Type Description CommentLazyBuilders::$commentManager protected property Comment manager service. CommentLazyBuilders::$currentUser protected property Current logged in user. CommentLazyBuilders::$entityFormBuilder protected property The ent

CommentLazyBuilders::$currentUser

Current logged in user. Type: \Drupal\Core\Session\AccountInterface File core/modules/comment/src/CommentLazyBuilders.php, line 45 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $currentUser;

CommentLazyBuilders::$entityFormBuilder

The entity form builder service. Type: \Drupal\Core\Entity\EntityFormBuilderInterface File core/modules/comment/src/CommentLazyBuilders.php, line 31 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $entityFormBuilder;

CommentLazyBuilders::$commentManager

Comment manager service. Type: \Drupal\comment\CommentManagerInterface File core/modules/comment/src/CommentLazyBuilders.php, line 38 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $commentManager;

CommentLazyBuilders::$entityManager

The entity manager service. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/comment/src/CommentLazyBuilders.php, line 24 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $entityManager;

CommentInterface::setThread

public CommentInterface::setThread($thread) Sets the alphadecimal representation of the comment's place in a thread. Parameters string $thread: The alphadecimal representation of the comment's place in a thread. Return value $this The class instance that this method is called on. File core/modules/comment/src/CommentInterface.php, line 238 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function setThread($thread);