public function Broken::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/ Broken.php, line 20
Class
- Broken
- Defines a fallback plugin for missing empty field plugins.
Namespace
Drupal\empty_fields\Plugin\EmptyFieldsCode
public function react(array $context) {
return [
'#markup' => $this
->settingsSummary(),
];
}