You are here

abstract public function EmptyFieldPluginBase::react in Empty fields 8

Builds render array for empty field.

Renderable array to display.

Parameters

array $context: An associative array containing:

  • entity: The entity being rendered.
  • view_mode: The view mode; for example, 'full' or 'teaser'.
  • display: The EntityDisplay holding the display options.

Overrides EmptyFieldPluginInterface::react

3 methods override EmptyFieldPluginBase::react()
Broken::react in src/Plugin/EmptyFields/Broken.php
Builds render array for empty field.
EmptyFieldNbsp::react in src/Plugin/EmptyFields/EmptyFieldNbsp.php
Builds render array for empty field.
EmptyFieldText::react in src/Plugin/EmptyFields/EmptyFieldText.php
Builds render array for empty field.

File

src/EmptyFieldPluginBase.php, line 23

Class

EmptyFieldPluginBase
Defines a base empty field item implementation.

Namespace

Drupal\empty_fields

Code

public abstract function react(array $content);