function UnpublishByKeywordComment::__construct
Same name in this branch
- 10 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()
Same name in other branches
- 9 core/modules/comment/src/Plugin/Action/UnpublishByKeywordComment.php \Drupal\comment\Plugin\Action\UnpublishByKeywordComment::__construct()
- 8.9.x 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()
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
1 call to UnpublishByKeywordComment::__construct()
- UnpublishByKeywordComment::__construct in core/
modules/ comment/ src/ Plugin/ Action/ UnpublishByKeywordComment.php - Constructs an UnpublishByKeywordComment object.
1 method overrides UnpublishByKeywordComment::__construct()
- UnpublishByKeywordComment::__construct in core/
modules/ comment/ src/ Plugin/ Action/ UnpublishByKeywordComment.php - Constructs an UnpublishByKeywordComment object.
File
-
core/
modules/ action/ src/ Plugin/ Action/ UnpublishByKeywordComment.php, line 56
Class
- UnpublishByKeywordComment
- Unpublishes a comment containing certain keywords.
Namespace
Drupal\action\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.