You are here

public function EntityReference::render in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/views/src/Plugin/views/display/EntityReference.php \Drupal\views\Plugin\views\display\EntityReference::render()
  2. 8 core/modules/views/src/Plugin/views/style/EntityReference.php \Drupal\views\Plugin\views\style\EntityReference::render()
Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/display/EntityReference.php \Drupal\views\Plugin\views\display\EntityReference::render()

Renders this display.

Overrides DisplayPluginBase::render

File

core/modules/views/src/Plugin/views/display/EntityReference.php, line 98
Contains \Drupal\views\Plugin\views\display\EntityReference.

Class

EntityReference
The plugin that handles an EntityReference display.

Namespace

Drupal\views\Plugin\views\display

Code

public function render() {
  if (!empty($this->view->result) && $this->view->style_plugin
    ->evenEmpty()) {
    return $this->view->style_plugin
      ->render($this->view->result);
  }
  return '';
}