You are here

public function UnpublishByKeywordComment::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()

Constructs a UnpublishByKeywordComment object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityViewBuilderInterface $comment_view_builder: The comment entity builder handler.

\Drupal\Core\Render\RendererInterface $renderer: The renderer.

Overrides ConfigurableActionBase::__construct

File

core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php, line 58
Contains \Drupal\comment\Plugin\Action\UnpublishByKeywordComment.

Class

UnpublishByKeywordComment
Unpublishes a comment containing certain keywords.

Namespace

Drupal\comment\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityViewBuilderInterface $comment_view_builder, RendererInterface $renderer) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->viewBuilder = $comment_view_builder;
  $this->renderer = $renderer;
}