You are here

protected function RenderedEntity::getView in Entity API 8.0

Returns the top object of a view.

Return value

\Drupal\views\ViewExecutable The view object.

Overrides EntityTranslationRenderTrait::getView

File

src/Plugin/views/field/RenderedEntity.php, line 193
Contains \Drupal\entity\Plugin\views\field\RenderedEntity.

Class

RenderedEntity
Provides a field handler which renders an entity in a certain view mode.

Namespace

Drupal\entity\Plugin\views\field

Code

protected function getView() {
  return $this->view;
}