public function ExtraFieldTypePluginInterface::build in Entity Extra Field 8
Same name and namespace in other branches
- 2.0.x src/ExtraFieldTypePluginInterface.php \Drupal\entity_extra_field\ExtraFieldTypePluginInterface::build()
Build the render array of the extra field type contents.
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.
4 methods override ExtraFieldTypePluginInterface::build()
- ExtraFieldBlockPlugin::build in src/
Plugin/ ExtraFieldType/ ExtraFieldBlockPlugin.php - Build the render array of the extra field type contents.
- ExtraFieldEntityLinkPlugin::build in src/
Plugin/ ExtraFieldType/ ExtraFieldEntityLinkPlugin.php - Build the render array of the extra field type contents.
- ExtraFieldTokenPlugin::build in src/
Plugin/ ExtraFieldType/ ExtraFieldTokenPlugin.php - Build the render array of the extra field type contents.
- ExtraFieldViewsPlugin::build in src/
Plugin/ ExtraFieldType/ ExtraFieldViewsPlugin.php - Build the render array of the extra field type contents.
File
- src/
ExtraFieldTypePluginInterface.php, line 36
Class
- ExtraFieldTypePluginInterface
- Define extra field type plugin interface.
Namespace
Drupal\entity_extra_fieldCode
public function build(EntityInterface $entity, EntityDisplayInterface $display);