function EntityTestViewBuilderOverriddenView::view
Same name in other branches
- 9 core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilderOverriddenView.php \Drupal\entity_test\EntityTestViewBuilderOverriddenView::view()
- 8.9.x core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilderOverriddenView.php \Drupal\entity_test\EntityTestViewBuilderOverriddenView::view()
- 11.x core/modules/system/tests/modules/entity_test/src/EntityTestViewBuilderOverriddenView.php \Drupal\entity_test\EntityTestViewBuilderOverriddenView::view()
Overrides EntityViewBuilder::view
1 call to EntityTestViewBuilderOverriddenView::view()
- EntityTestViewBuilderOverriddenView::viewMultiple in core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestViewBuilderOverriddenView.php
File
-
core/
modules/ system/ tests/ modules/ entity_test/ src/ EntityTestViewBuilderOverriddenView.php, line 15
Class
- EntityTestViewBuilderOverriddenView
- Provides a view builder that overrides ::view() and ::viewMultiple().
Namespace
Drupal\entity_testCode
public function view(EntityInterface $entity, $view_mode = 'full', $langcode = NULL) {
$build = [];
$build[$entity->id()]['#plain_text'] = $entity->label();
return $build;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.