You are here

public function EntityReferenceRevisions::render in Entity Reference Revisions 8

Same name in this branch
  1. 8 src/Plugin/views/display/EntityReferenceRevisions.php \Drupal\entity_reference_revisions\Plugin\views\display\EntityReferenceRevisions::render()
  2. 8 src/Plugin/views/style/EntityReferenceRevisions.php \Drupal\entity_reference_revisions\Plugin\views\style\EntityReferenceRevisions::render()

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase::render().

Overrides DisplayPluginBase::render

File

src/Plugin/views/display/EntityReferenceRevisions.php, line 96

Class

EntityReferenceRevisions
The plugin that handles an EntityReferenceRevisions display.

Namespace

Drupal\entity_reference_revisions\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 '';
}