Browse Source

Format the 'Fedora URI' label as a label.

pull/970/head
Rosie Le Faive 2 years ago
parent
commit
55007ec761
  1. 17
      islandora.module

17
islandora.module

@ -686,13 +686,17 @@ function islandora_entity_view(array &$build, EntityInterface $entity, EntityVie
'id' => 'field-gemini-uri', 'id' => 'field-gemini-uri',
], ],
'internal_label' => [ 'internal_label' => [
'#type' => 'item', '#type' => 'html_tag',
'#title' => t('Fedora URI'), '#tag' => 'div',
'internal_uri' => [ '#attributes' => [
'#type' => 'link', 'class' => ['field__label'],
'#title' => t("@url", ['@url' => $fedora_uri]),
'#url' => Url::fromUri($fedora_uri),
], ],
'#value' => t('Fedora URI:'),
],
'internal_uri' => [
'#type' => 'link',
'#title' => t("@url", ['@url' => $fedora_uri]),
'#url' => Url::fromUri($fedora_uri),
], ],
]; ];
} }
@ -742,3 +746,4 @@ function islandora_preprocess_views_view_table(&$variables) {
} }
} }
} }

Loading…
Cancel
Save