public function LikeAndDislike::__construct in Like & Dislike 8
LikeAndDislike constructor.
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\like_and_dislike\LikeDislikeVoteBuilderInterface $likeDislikeBuilder: Like and Dislike builder.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ field/ LikeAndDislike.php, line 51
Class
- LikeAndDislike
- Like and Dislike field handler.
Namespace
Drupal\like_and_dislike\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, LikeDislikeVoteBuilderInterface $likeDislikeBuilder) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->likeDislikeBuilder = $likeDislikeBuilder;
}