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

CommentAdminOverview::__construct

public CommentAdminOverview::__construct(EntityManagerInterface $entity_manager, CommentStorageInterface $comment_storage, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler) Creates a CommentAdminOverview form. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Drupal\comment\CommentStorageInterface $comment_storage: The comment storage. \Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter

CommentAdminOverview::validateForm

public CommentAdminOverview::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/comment/src/Form/CommentAdminOverview.php, line 244 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Fo

CommentAdminOverview::submitForm

public CommentAdminOverview::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/comment/src/Form/CommentAdminOverview.php, line 255 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\F

CommentAdminOverview::getFormId

public CommentAdminOverview::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/comment/src/Form/CommentAdminOverview.php, line 82 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code public function getFormId() { return 'comment_admin_overview'; }

CommentAdminOverview::create

public static CommentAdminOverview::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 ser

CommentAdminOverview::buildForm

public CommentAdminOverview::buildForm(array $form, FormStateInterface $form_state, $type = 'new') Form constructor for the comment overview administration form. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. string $type: The type of the overview form ('approval' or 'new'). Return value array The form structure. Overrides FormInterface::buildForm File core/modules/comment/src/

CommentAdminOverview::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/comment/src/Form/CommentAdminOverview.php, line 46 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code protected $moduleHandler;

CommentAdminOverview::$entityManager

The entity storage. Type: \Drupal\Core\Entity\EntityManagerInterface File core/modules/comment/src/Form/CommentAdminOverview.php, line 25 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code protected $entityManager;

CommentAdminOverview::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/comment/src/Form/CommentAdminOverview.php, line 39 Class CommentAdminOverview Provides the comments overview administration form. Namespace Drupal\comment\Form Code protected $dateFormatter;