You are here

public function FieldWidgetDisplayInterface::view in Entity Browser 8.2

Same name and namespace in other branches
  1. 8 src/FieldWidgetDisplayInterface.php \Drupal\entity_browser\FieldWidgetDisplayInterface::view()

Builds and gets render array for the entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: Entity to be displayed.

Return value

array Render array that is to be used to display the entity in field widget.

3 methods override FieldWidgetDisplayInterface::view()
EntityLabel::view in src/Plugin/EntityBrowser/FieldWidgetDisplay/EntityLabel.php
Builds and gets render array for the entity.
ImageThumbnail::view in src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php
Builds and gets render array for the entity.
RenderedEntity::view in src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php
Builds and gets render array for the entity.

File

src/FieldWidgetDisplayInterface.php, line 26

Class

FieldWidgetDisplayInterface
Defines the interface for entity browser field widget display plugins.

Namespace

Drupal\entity_browser

Code

public function view(EntityInterface $entity);