You are here

protected function DisqusTopCommentersBlock::buildQuery in Disqus 8

Gets query values for Disqus widget URL.

Return value

array Array of query values for Disqus widget URL.

Overrides DisqusBaseBlock::buildQuery

File

src/Plugin/Block/DisqusTopCommentersBlock.php, line 32

Class

DisqusTopCommentersBlock
Plugin implementation of the 'disqus_top_commenters'.

Namespace

Drupal\disqus\Plugin\Block

Code

protected function buildQuery() {
  return parent::buildQuery() + [
    'avatar_size' => $this->configuration['avatar_size'],
    'hide_avatars' => (int) (!$this->configuration['show_avatars']),
    'hide_mods' => (int) $this->configuration['hide_mods'],
  ];
}