You are here

class CommentBulkForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/comment/src/Plugin/views/field/CommentBulkForm.php \Drupal\comment\Plugin\views\field\CommentBulkForm
  2. 9 core/modules/comment/src/Plugin/views/field/CommentBulkForm.php \Drupal\comment\Plugin\views\field\CommentBulkForm

Defines a comment operations bulk form element.

Plugin annotation

@ViewsField("comment_bulk_form");

Hierarchy

Expanded class hierarchy of CommentBulkForm

1 file declares its use of CommentBulkForm
CommentBulkFormTest.php in core/modules/comment/tests/src/Unit/Plugin/views/field/CommentBulkFormTest.php

File

core/modules/comment/src/Plugin/views/field/CommentBulkForm.php, line 12

Namespace

Drupal\comment\Plugin\views\field
View source
class CommentBulkForm extends BulkForm {

  /**
   * {@inheritdoc}
   */
  protected function emptySelectedMessage() {
    return $this
      ->t('Select one or more comments to perform the update on.');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BulkForm::$actions protected property An array of actions that can be executed.
BulkForm::$actionStorage protected property The action storage.
BulkForm::$entityRepository protected property The entity repository service.
BulkForm::$entityTypeManager protected property The entity type manager.
BulkForm::$languageManager protected property The language manager.
BulkForm::$messenger protected property The messenger.
BulkForm::buildOptionsForm public function
BulkForm::calculateEntityBulkFormKey protected function Calculates a bulk form key.
BulkForm::clickSortable public function
BulkForm::create public static function
BulkForm::defineOptions protected function
BulkForm::getBulkOptions protected function Returns the available operations for this form.
BulkForm::getCacheContexts public function The cache contexts associated with this object. Overrides CacheableDependencyInterface::getCacheContexts
BulkForm::getCacheMaxAge public function The maximum age for which this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge
BulkForm::getCacheTags public function The cache tags associated with this object. Overrides CacheableDependencyInterface::getCacheTags
BulkForm::getEntityRepository protected function
BulkForm::getEntityTypeId public function Returns the entity type identifier. Overrides EntityTranslationRenderTrait::getEntityTypeId
BulkForm::getEntityTypeManager protected function
BulkForm::getLanguageManager protected function Returns the language manager. Overrides EntityTranslationRenderTrait::getLanguageManager
BulkForm::getValue public function Overrides UncacheableFieldHandlerTrait::getValue
BulkForm::getView protected function Returns the top object of a view. Overrides EntityTranslationRenderTrait::getView
BulkForm::init public function
BulkForm::loadEntityFromBulkFormKey protected function Loads an entity based on a bulk form key.
BulkForm::preRender public function
BulkForm::query public function
BulkForm::validateOptionsForm public function
BulkForm::viewsForm public function Form constructor for the bulk form. 1
BulkForm::viewsFormSubmit public function Submit handler for the bulk form.
BulkForm::viewsFormValidate public function
BulkForm::__construct public function Constructs a new BulkForm object.
CommentBulkForm::emptySelectedMessage protected function Returns the message to be displayed when there are no selected items. Overrides BulkForm::emptySelectedMessage
EntityTranslationRenderTrait::$entityTranslationRenderer protected property The renderer to be used to render the entity row.
EntityTranslationRenderTrait::getEntityTranslation public function Returns the entity translation matching the configured row language.
EntityTranslationRenderTrait::getEntityTranslationRenderer protected function Returns the current renderer.
RedirectDestinationTrait::$redirectDestination protected property The redirect destination service. 1
RedirectDestinationTrait::getDestinationArray protected function Prepares a 'destination' URL query parameter for use with \Drupal\Core\Url.
RedirectDestinationTrait::getRedirectDestination protected function Returns the redirect destination service.
RedirectDestinationTrait::setRedirectDestination public function Sets the redirect destination service.
UncacheableFieldHandlerTrait::doRender protected function Actually renders the field markup.
UncacheableFieldHandlerTrait::getFieldTokenPlaceholder abstract protected function
UncacheableFieldHandlerTrait::postRender public function
UncacheableFieldHandlerTrait::render public function