You are here

public function Block::blockSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::blockSettings()
  2. 9 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 120

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;
}