Browse Source

Moving collection route to admin/content (#8)

pull/756/head
dannylamb 8 years ago committed by Nick Ruest
parent
commit
eeaa05bb3f
  1. 8
      islandora.links.menu.yml
  2. 5
      islandora.links.task.yml
  3. 4
      src/Entity/FedoraResource.php

8
islandora.links.menu.yml

@ -1,11 +1,3 @@
# Fedora resource menu items definition
entity.fedora_resource.collection:
title: 'Fedora resource list'
route_name: entity.fedora_resource.collection
description: 'List Fedora resource entities'
parent: system.admin_structure
weight: 100
# Fedora resource type menu items definition
entity.fedora_resource_type.collection:
title: 'Fedora resource type list'

5
islandora.links.task.yml

@ -14,3 +14,8 @@ entity.fedora_resource.delete_form:
base_route: entity.fedora_resource.canonical
title: Delete
weight: 10
entity.fedora_resource.collection:
route_name: entity.fedora_resource.collection
base_route: system.admin_content
title: 'Fedora Resources'

4
src/Entity/FedoraResource.php

@ -57,7 +57,7 @@ use Drupal\user\UserInterface;
* "add-form" = "/fedora_resource/add/{fedora_resource_type}",
* "edit-form" = "/fedora_resource/{fedora_resource}/edit",
* "delete-form" = "/fedora_resource/{fedora_resource}/delete",
* "collection" = "/admin/structure/fedora_resource",
* "collection" = "/admin/content/fedora_resource",
* },
* bundle_entity_type = "fedora_resource_type",
* field_ui_base_route = "entity.fedora_resource_type.edit_form"
@ -293,7 +293,7 @@ class FedoraResource extends ContentEntityBase implements FedoraResourceInterfac
))
->setDisplayConfigurable('form', TRUE)
->setDisplayConfigurable('view', TRUE);
$fields['fedora_has_parent'] = BaseFieldDefinition::create('entity_reference')
->setLabel(t('Fedora has Parent'))
->setDescription(t('Parent Fedora Resource.'))

Loading…
Cancel
Save