class UnformattedSummary
Same name and namespace in other branches
- 11.x core/modules/views/src/Plugin/views/style/UnformattedSummary.php \Drupal\views\Plugin\views\style\UnformattedSummary
The default style plugin for summaries.
Plugin annotation
@ViewsStyle(
id = "unformatted_summary",
title = @Translation("Unformatted"),
help = @Translation("Displays the summary unformatted, with option for one after another or inline."),
theme = "views_view_summary_unformatted",
display_types = {"summary"}
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\views\Plugin\views\style\StylePluginBase implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\style\DefaultSummary implements \Drupal\views\Plugin\views\style\StylePluginBase
- class \Drupal\views\Plugin\views\style\UnformattedSummary implements \Drupal\views\Plugin\views\style\DefaultSummary
- class \Drupal\views\Plugin\views\style\DefaultSummary implements \Drupal\views\Plugin\views\style\StylePluginBase
- class \Drupal\views\Plugin\views\style\StylePluginBase implements \Drupal\views\Plugin\views\PluginBase
- class \Drupal\views\Plugin\views\PluginBase extends \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\views\Plugin\views\ViewsPluginInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Security\TrustedCallbackInterface implements \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait implements \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of UnformattedSummary
Related topics
File
-
core/
modules/ views/ src/ Plugin/ views/ style/ UnformattedSummary.php, line 20
Namespace
Drupal\views\Plugin\views\styleView source
class UnformattedSummary extends DefaultSummary {
protected function defineOptions() {
$options = parent::defineOptions();
$options['inline'] = [
'default' => FALSE,
];
$options['separator'] = [
'default' => '',
];
return $options;
}
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['inline'] = [
'#type' => 'checkbox',
'#default_value' => !empty($this->options['inline']),
'#title' => $this->t('Display items inline'),
];
$form['separator'] = [
'#type' => 'textfield',
'#title' => $this->t('Separator'),
'#default_value' => $this->options['separator'],
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.