You are here

protected function Block::defineOptions 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::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/display/Block.php \Drupal\views\Plugin\views\display\Block::defineOptions()

File

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

Class

Block
The plugin that handles a block.

Namespace

Drupal\views\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['block_description'] = [
    'default' => '',
  ];
  $options['block_category'] = [
    'default' => $this
      ->t('Lists (Views)'),
  ];
  $options['block_hide_empty'] = [
    'default' => FALSE,
  ];
  $options['allow'] = [
    'contains' => [
      'items_per_page' => [
        'default' => 'items_per_page',
      ],
    ],
  ];
  return $options;
}