You are here

public function ExtraFieldDisplayBase::setEntityViewDisplay in Extra Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/ExtraFieldDisplayBase.php \Drupal\extra_field\Plugin\ExtraFieldDisplayBase::setEntityViewDisplay()

Stores the entity view display.

Parameters

\Drupal\Core\Entity\Display\EntityViewDisplayInterface $display: The entity view display holding the display options configured for the entity components. As provided by hook_entity_view()

Overrides ExtraFieldDisplayInterface::setEntityViewDisplay

File

src/Plugin/ExtraFieldDisplayBase.php, line 54

Class

ExtraFieldDisplayBase
Base class for Extra field Display plugins.

Namespace

Drupal\extra_field\Plugin

Code

public function setEntityViewDisplay(EntityViewDisplayInterface $display) {
  $this->entityViewDisplay = $display;
}