public function FileFieldFormatter::getFieldValue in Entity Embed 8
Get the field value required to pass into the field formatter.
Return value
mixed The field value.
Overrides EntityReferenceFieldFormatter::getFieldValue
1 call to FileFieldFormatter::getFieldValue()
- ImageFieldFormatter::getFieldValue in src/
Plugin/ entity_embed/ EntityEmbedDisplay/ ImageFieldFormatter.php - Get the field value required to pass into the field formatter.
1 method overrides FileFieldFormatter::getFieldValue()
- ImageFieldFormatter::getFieldValue in src/
Plugin/ entity_embed/ EntityEmbedDisplay/ ImageFieldFormatter.php - Get the field value required to pass into the field formatter.
File
- src/
Plugin/ entity_embed/ EntityEmbedDisplay/ FileFieldFormatter.php, line 26
Class
- FileFieldFormatter
- Entity Embed Display reusing file field formatters.
Namespace
Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplayCode
public function getFieldValue() {
$value = parent::getFieldValue();
$value += array_intersect_key($this
->getConfiguration(), [
'description' => '',
]);
return $value;
}