You are here

public function EntityExtraFieldInterface::build in Entity Extra Field 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/EntityExtraFieldInterface.php \Drupal\entity_extra_field\Entity\EntityExtraFieldInterface::build()

Build the extra field.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity type the extra field is being attached too.

\Drupal\Core\Entity\Display\EntityDisplayInterface $display: The entity display the extra field is apart of.

Return value

array The extra field renderable array.

1 method overrides EntityExtraFieldInterface::build()
EntityExtraField::build in src/Entity/EntityExtraField.php
Build the extra field.

File

src/Entity/EntityExtraFieldInterface.php, line 191

Class

EntityExtraFieldInterface
Define entity extra field interface.

Namespace

Drupal\entity_extra_field\Entity

Code

public function build(EntityInterface $entity, EntityDisplayInterface $display);