public function PageVariantViewBuilder::viewFieldItem in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Entity/PageVariantViewBuilder.php \Drupal\page_manager\Entity\PageVariantViewBuilder::viewFieldItem()
Builds a renderable array for a single field item.
Parameters
\Drupal\Core\Field\FieldItemInterface $item: FieldItem to be displayed.
string|array $display_options: Can be either the name of a view mode, or an array of display settings. See EntityViewBuilderInterface::viewField() for more information.
Return value
array A renderable array for the field item.
Overrides EntityViewBuilderInterface::viewFieldItem
See also
\Drupal\Core\Entity\EntityViewBuilderInterface::viewField()
File
- src/
Entity/ PageVariantViewBuilder.php, line 79 - Contains \Drupal\page_manager\Entity\PageVariantViewBuilder.
Class
- PageVariantViewBuilder
- Provides a view builder for page variant entities.
Namespace
Drupal\page_manager\EntityCode
public function viewFieldItem(FieldItemInterface $item, $display_options = array()) {
throw new \LogicException();
}