function UnpublishByKeywordComment::__construct
Same name in other branches
- 8.9.x core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()
- 10 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()
- 11.x core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()
- 10 core/modules/action/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\action\Plugin\Action\UnpublishByKeywordComment::__construct()
Constructs an 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 53
Class
- UnpublishByKeywordComment
- Unpublishes a comment containing certain keywords.
Namespace
Drupal\comment\Plugin\ActionCode
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.