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::$httpKernel

The HTTP kernel. Type: \Symfony\Component\HttpKernel\HttpKernelInterface File core/modules/comment/src/Controller/CommentController.php, line 33 Class CommentController Controller for the comment entity. Namespace Drupal\comment\Controller Code protected $httpKernel;

CommentController::$entityManager

The entity manager. Type: \Drupal\Core\Entity\EntityStorageInterface Overrides ControllerBase::$entityManager File core/modules/comment/src/Controller/CommentController.php, line 47 Class CommentController Controller for the comment entity. Namespace Drupal\comment\Controller Code protected $entityManager;

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::applies

public CommentBreadcrumbBuilder::applies(RouteMatchInterface $route_match) Whether this breadcrumb builder should be used to build the breadcrumb. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value bool TRUE if this builder should be used or FALSE to let other builders decide. Overrides BreadcrumbBuilderInterface::applies File core/modules/comment/src/CommentBreadcrumbBuilder.php, line 38 Class CommentBreadcrumbBuilder Class to define

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;