The display block handler returns the structure necessary for a block.
Overrides DisplayPluginBase::execute
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.
$element = $this->view
->render();
if (!empty($this->view->result) || $this
->getOption('empty') || !empty($this->view->style_plugin->definition['even empty'])) {
return drupal_render($element);
}
}