public function ViewsTab::getSummary in Block Tabs 8
Returns a render array summarizing the configuration of the tab.
Return value
array A render array.
Overrides TabBase::getSummary
File
- src/
Plugin/ Tab/ ViewsTab.php, line 33
Class
- ViewsTab
- Views tab.
Namespace
Drupal\blocktabs\Plugin\TabCode
public function getSummary() {
$markup = $this
->t('view name:') . $this->configuration['view_name'] . '; ';
$markup .= $this
->t('display:') . $this->configuration['view_display'] . '; ';
if (!empty($this->configuration['view_arg'])) {
$markup .= $this
->t('argument:') . $this->configuration['view_arg'];
}
$summary = [
'#markup' => '(' . $markup . ')',
];
return $summary;
}