public function Block::execute in Views (for Drupal 7) 8.3
The display block handler returns the structure necessary for a block.
Overrides DisplayPluginBase::execute
File
- lib/
Views/ block/ Plugin/ views/ display/ Block.php, line 77 - Definition of Drupal\views\Plugin\views\display\Block. Definition of Views\block\Plugin\views\display\Block.
Class
- Block
- The plugin that handles a block.
Namespace
Views\block\Plugin\views\displayCode
public function execute() {
// Prior to this being called, the $view should already be set to this
// display, and arguments should be set on the view.
$info['content'] = $this->view
->render();
$info['subject'] = filter_xss_admin($this->view
->getTitle());
if (!empty($this->view->result) || $this
->getOption('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
return $info;
}
}