protected function ModeBlock::defineOptions in Open Social 10.2.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_activity/src/Plugin/views/display/ModeBlock.php \Drupal\social_activity\Plugin\views\display\ModeBlock::defineOptions()
- 8.8 modules/social_features/social_activity/src/Plugin/views/display/ModeBlock.php \Drupal\social_activity\Plugin\views\display\ModeBlock::defineOptions()
- 10.3.x modules/social_features/social_activity/src/Plugin/views/display/ModeBlock.php \Drupal\social_activity\Plugin\views\display\ModeBlock::defineOptions()
- 10.0.x modules/social_features/social_activity/src/Plugin/views/display/ModeBlock.php \Drupal\social_activity\Plugin\views\display\ModeBlock::defineOptions()
- 10.1.x modules/social_features/social_activity/src/Plugin/views/display/ModeBlock.php \Drupal\social_activity\Plugin\views\display\ModeBlock::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides Block::defineOptions
1 call to ModeBlock::defineOptions()
- FilterBlock::defineOptions in modules/
social_features/ social_activity/ modules/ social_activity_filter/ src/ Plugin/ views/ display/ FilterBlock.php - Information about options for all kinds of purposes will be held here.
1 method overrides ModeBlock::defineOptions()
- FilterBlock::defineOptions in modules/
social_features/ social_activity/ modules/ social_activity_filter/ src/ Plugin/ views/ display/ FilterBlock.php - Information about options for all kinds of purposes will be held here.
File
- modules/
social_features/ social_activity/ src/ Plugin/ views/ display/ ModeBlock.php, line 89
Class
- ModeBlock
- The plugin that handles a block.
Namespace
Drupal\social_activity\Plugin\views\displayCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['view_mode'] = [
'contains' => [
'type' => [
'default' => 'type',
],
],
];
return $options;
}