Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects

Update epic project

Merged Francesco SARDARA requested to merge update_epic_project into EPIC-1293-Project
16 files
+ 406
13
Compare changes
  • Side-by-side
  • Inline
Files
16
@@ -74,13 +74,19 @@ function oe_whitelabel_contact_forms_preprocess_status_messages(&$variables) {
if ($field->isEmpty() || !$field->access()) {
continue;
}
$value = 'value';
if ($field->getFieldDefinition()->getType() == 'skos_concept_entity_reference') {
$value = 'target_id';
if ($field->getFieldDefinition()->getType() === 'skos_concept_entity_reference') {
/** @var \Drupal\rdf_skos\Entity\Concept[] $concept_entities */
$concept_entities = $field->referencedEntities();
$definition = $concept_entities[0]->label();
}
else {
$definition = $field->first()->getValue()['value'];
}
$items[] = [
'term' => $field->getFieldDefinition()->getLabel(),
'definition' => $field->first()->getValue()[$value],
'definition' => $definition,
];
}
$variables['message_list']['status'][$key] = [
Loading