CommentTypeForm::__construct

public CommentTypeForm::__construct(EntityManagerInterface $entity_manager, LoggerInterface $logger, CommentManagerInterface $comment_manager) Constructs a CommentTypeFormController Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service. \Psr\Log\LoggerInterface $logger: A logger instance. \Drupal\comment\CommentManagerInterface $comment_manager: The comment manager. File core/modules/comment/src/CommentTypeForm.php, line 60 Class CommentTypeForm

CommentTypeForm::save

public CommentTypeForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the opera

CommentTypeForm::create

public static CommentTypeForm::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 service

CommentTypeForm

Base form handler for comment type edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\comment\CommentTypeForm File core/modules/comment/src/CommentTypeForm.php, line 16 Namespace Drupal\comment Members Name

CommentTypeForm::$entityManager

Entity manager service. Type: \Drupal\Core\Entity\EntityManagerInterface Overrides EntityForm::$entityManager File core/modules/comment/src/CommentTypeForm.php, line 23 Class CommentTypeForm Base form handler for comment type edit forms. Namespace Drupal\comment Code protected $entityManager;

CommentTypeForm::$commentManager

The comment manager. Type: \Drupal\comment\CommentManagerInterface File core/modules/comment/src/CommentTypeForm.php, line 37 Class CommentTypeForm Base form handler for comment type edit forms. Namespace Drupal\comment Code protected $commentManager;

CommentTypeDeleteForm::create

public static CommentTypeDeleteForm::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 se

CommentTypeDeleteForm::buildForm

public CommentTypeDeleteForm::buildForm(array $form, FormStateInterface $form_state) Form constructor. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value array The form structure. Overrides EntityDeleteForm::buildForm File core/modules/comment/src/Form/CommentTypeDeleteForm.php, line 88 Class CommentTypeDeleteForm Provides a confirmation form for deleting a commen

CommentTypeDeleteForm::__construct

public CommentTypeDeleteForm::__construct(QueryFactory $query_factory, CommentManagerInterface $comment_manager, EntityManager $entity_manager, LoggerInterface $logger) Constructs a query factory object. Parameters \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query object. \Drupal\comment\CommentManagerInterface $comment_manager: The comment manager service. \Drupal\Core\Entity\EntityManager $entity_manager: The entity manager service. \Psr\Log\LoggerInterface $logger: A l

CommentTypeDeleteForm::$commentManager

The comment manager service. Type: \Drupal\comment\CommentManagerInterface File core/modules/comment/src/Form/CommentTypeDeleteForm.php, line 31 Class CommentTypeDeleteForm Provides a confirmation form for deleting a comment type entity. Namespace Drupal\comment\Form Code protected $commentManager;