You are here

public function ContactFormViewBuilder::viewFieldItem in Contact Storage 8

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/ContactFormViewBuilder.php, line 155

Class

ContactFormViewBuilder
Provides a contact form view builder.

Namespace

Drupal\contact_storage

Code

public function viewFieldItem(FieldItemInterface $item, $display_options = []) {
  throw new \LogicException();
}