public function ExtraFieldDisplayInterface::view in Extra Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/ExtraFieldDisplayInterface.php \Drupal\extra_field\Plugin\ExtraFieldDisplayInterface::view()
Builds a renderable array for the field.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: The field's host entity.
Return value
array Renderable array.
6 methods override ExtraFieldDisplayInterface::view()
- AllNodeTypesTest::view in tests/
extra_field_test/ src/ Plugin/ ExtraField/ Display/ AllNodeTypesTest.php - Builds a renderable array for the field.
- ExampleAllNodes::view in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleAllNodes.php - Builds a renderable array for the field.
- ExampleArticle::view in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleArticle.php - Builds a renderable array for the field.
- ExampleWithDependencyInjection::view in modules/
extra_field_example/ src/ Plugin/ ExtraField/ Display/ ExampleWithDependencyInjection.php - Builds a renderable array for the field.
- ExtraFieldDisplayFormattedBase::view in src/
Plugin/ ExtraFieldDisplayFormattedBase.php - Builds a renderable array for the field.
File
- src/
Plugin/ ExtraFieldDisplayInterface.php, line 23
Class
- ExtraFieldDisplayInterface
- Defines an interface for Extra Field Display plugins.
Namespace
Drupal\extra_field\PluginCode
public function view(ContentEntityInterface $entity);