CommentController::commentPermalink

public CommentController::commentPermalink(Request $request, CommentInterface $comment) Redirects comment links to the correct page depending on comment settings. Since comments are paged there is no way to guarantee which page a comment appears on. Comment paging and threading settings may be changed at any time. With threaded comments, an individual comment may move between pages as comments can be added either before or after it in the overall discussion. Therefore we use a central routing f

CommentController::commentApprove

public CommentController::commentApprove(CommentInterface $comment) Publishes the specified comment. Parameters \Drupal\comment\CommentInterface $comment: A comment entity. Return value \Symfony\Component\HttpFoundation\RedirectResponse File core/modules/comment/src/Controller/CommentController.php, line 84 Class CommentController Controller for the comment entity. Namespace Drupal\comment\Controller Code public function commentApprove(CommentInterface $comment) { $comment->setP

CommentController::create

public static CommentController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The servic

CommentController::getReplyForm

public CommentController::getReplyForm(Request $request, EntityInterface $entity, $field_name, $pid = NULL) Form constructor for the comment reply form. There are several cases that have to be handled, including: replies to comments replies to entities Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. \Drupal\Core\Entity\EntityInterface $entity: The entity this comment belongs to. string $field_name: The field_name to which the comment belongs. int $p

CommentController::$commentManager

The comment manager service. Type: \Drupal\comment\CommentManagerInterface File core/modules/comment/src/Controller/CommentController.php, line 40 Class CommentController Controller for the comment entity. Namespace Drupal\comment\Controller Code protected $commentManager;

CommentController

Controller for the comment entity. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\comment\Controller\CommentController See also \Drupal\comment\Entity\Comment. File core/modules/comment/src/Controller/CommentController.php, line 26 Namespace Drupal\comment\Controller Members Name Modifiers Type Description

CommentBreadcrumbBuilder::__construct

public CommentBreadcrumbBuilder::__construct(EntityManagerInterface $entity_manager) Constructs the CommentBreadcrumbBuilder. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. File core/modules/comment/src/CommentBreadcrumbBuilder.php, line 31 Class CommentBreadcrumbBuilder Class to define the comment breadcrumb builder. Namespace Drupal\comment Code public function __construct(EntityManagerInterface $entity_manager) { $this->storage = $en

CommentBreadcrumbBuilder::build

public CommentBreadcrumbBuilder::build(RouteMatchInterface $route_match) Builds the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value \Drupal\Core\Breadcrumb\Breadcrumb A breadcrumb. Overrides BreadcrumbBuilderInterface::build File core/modules/comment/src/CommentBreadcrumbBuilder.php, line 45 Class CommentBreadcrumbBuilder Class to define the comment breadcrumb builder. Namespace Drupal\comment Code public function bu

CommentBreadcrumbBuilder

Class to define the comment breadcrumb builder. Hierarchy class \Drupal\comment\CommentBreadcrumbBuilder implements BreadcrumbBuilderInterface uses StringTranslationTrait File core/modules/comment/src/CommentBreadcrumbBuilder.php, line 15 Namespace Drupal\comment Members Name Modifiers Type Description CommentBreadcrumbBuilder::$storage protected property The comment storage. CommentBreadcrumbBuilder::applies public function Whether this breadcrumb builder should

CommentBreadcrumbBuilder::$storage

The comment storage. Type: \Drupal\Core\Entity\EntityStorageInterface File core/modules/comment/src/CommentBreadcrumbBuilder.php, line 23 Class CommentBreadcrumbBuilder Class to define the comment breadcrumb builder. Namespace Drupal\comment Code protected $storage;