public function DisqusBaseBlock::__construct in Disqus 8
Constructs a new DisqusBaseBlock.
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\Routing\RouteMatchInterface $route_match: The current route match.
\Drupal\disqus\DisqusCommentManager $disqus_manager: The disqus comment manager object.
\Drupal\Core\Session\AccountInterface $current_user: The account for which view access should be checked.
\Drupal\Core\Config\ImmutableConfig $disqus_config: Disqus config object.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ DisqusBaseBlock.php, line 68
Class
- DisqusBaseBlock
- Create a new DisqusBaseBlock.
Namespace
Drupal\disqus\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteMatchInterface $route_match, DisqusCommentManager $disqus_manager, AccountInterface $current_user, ImmutableConfig $disqus_config) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
$this->disqusManager = $disqus_manager;
$this->routeMatch = $route_match;
$this->disqusConfig = $disqus_config;
}