function Block::blockSettings

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::blockSettings()
  2. 8.9.x core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::blockSettings()
  3. 10 core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::blockSettings()

Returns plugin-specific settings for the block.

Parameters

array $settings: The settings of the block.

Return value

array An array of block-specific settings to override the defaults provided in \Drupal\views\Plugin\Block\ViewsBlock::defaultConfiguration().

See also

\Drupal\views\Plugin\Block\ViewsBlock::defaultConfiguration()

File

core/modules/views/src/Plugin/views/display/Block.php, line 122

Class

Block
The plugin that handles a block.

Namespace

Drupal\views\Plugin\views\display

Code

public function blockSettings(array $settings) {
    $settings['items_per_page'] = 'none';
    return $settings;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.