You are here

public function EmptyFieldNbsp::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 EmptyFieldPluginBase::react

File

src/Plugin/EmptyFields/EmptyFieldNbsp.php, line 20

Class

EmptyFieldNbsp
Defines non-breaking space field.

Namespace

Drupal\empty_fields\Plugin\EmptyFields

Code

public function react(array $context) {
  return [
    '#markup' => ' ',
  ];
}