public function EmptyFieldPluginInterface::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.
1 method overrides EmptyFieldPluginInterface::react()
- EmptyFieldPluginBase::react in src/
EmptyFieldPluginBase.php - Builds render array for empty field.
File
- src/
EmptyFieldPluginInterface.php, line 29
Class
- EmptyFieldPluginInterface
- Defines an interface for empty fields.
Namespace
Drupal\empty_fieldsCode
public function react(array $context);