You are here

protected function DisqusRecentCommentBlock::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/DisqusRecentCommentBlock.php, line 32

Class

DisqusRecentCommentBlock
Plugin implementation of the 'disqus_recent_comments'.

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']),
    'excerpt_length' => $this->configuration['excerpt_length'],
  ];
}