diff --git a/islandora.links.menu.yml b/islandora.links.menu.yml index 4c4ed548..6527c19b 100644 --- a/islandora.links.menu.yml +++ b/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' diff --git a/islandora.links.task.yml b/islandora.links.task.yml index 547e0758..e3096748 100644 --- a/islandora.links.task.yml +++ b/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' diff --git a/src/Entity/FedoraResource.php b/src/Entity/FedoraResource.php index 0e58567d..f4238fd1 100644 --- a/src/Entity/FedoraResource.php +++ b/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.'))