diff --git a/hierarchy_manager.links.menu.yml b/hierarchy_manager.links.menu.yml index d515513142055068b6bbfd4f3daaaf9f7da01b47..cc89976e2cf12932ba51d7715279a5176db06cb1 100644 --- a/hierarchy_manager.links.menu.yml +++ b/hierarchy_manager.links.menu.yml @@ -7,8 +7,8 @@ hierarchy_manager.hm_config_form: # HM Display Profile Entity menu items definition entity.hm_display_profile.collection: - title: 'HM Display Profile Entity' + title: 'HM Display Profile' route_name: entity.hm_display_profile.collection - description: 'List HM Display Profile Entity (bundles)' + description: 'List HM Display Profiles' parent: system.admin_structure weight: 99 diff --git a/hierarchy_manager.routing.yml b/hierarchy_manager.routing.yml index 82c94f4ab4902f9d82c5b6c5a9bd12e82b6c5611..8dbfe2702bd579f1de98ac09d563dde3c8f1cfb0 100644 --- a/hierarchy_manager.routing.yml +++ b/hierarchy_manager.routing.yml @@ -1,3 +1,12 @@ +# HM Display Profile list +entity.hm_display_profile.collection: + path: '/admin/structure/hm_display_profile' + defaults: + _entity_list: 'hm_display_profile' + _title: 'HM Display Profiles' + requirements: + _permission: 'administer site configuration' + # Hierarchy Manager Configuration hierarchy_manager.hm_config_form: path: '/admin/config/user-interface/hierarchy_manager/config' diff --git a/src/Form/HmDisplayProfileForm.php b/src/Form/HmDisplayProfileForm.php index 2aa3ddc71ed9ca98fda431dd4869fbd71ecc2208..87c8811261bc344a8b5dc5e7468f1a16e6543491 100644 --- a/src/Form/HmDisplayProfileForm.php +++ b/src/Form/HmDisplayProfileForm.php @@ -60,7 +60,7 @@ class HmDisplayProfileForm extends EntityForm { '#title' => $this->t('Label'), '#maxlength' => 255, '#default_value' => $hm_display_profile->label(), - '#description' => $this->t("Label for the HM Display Profile Entity."), + '#description' => $this->t("Label for the HM Display Profile."), '#required' => TRUE, ]; @@ -137,13 +137,13 @@ class HmDisplayProfileForm extends EntityForm { switch ($status) { case SAVED_NEW: - $this->messenger()->addMessage($this->t('Created the %label HM Display Profile Entity.', [ + $this->messenger()->addMessage($this->t('Created the %label HM Display Profile.', [ '%label' => $hm_display_profile->label(), ])); break; default: - $this->messenger()->addMessage($this->t('Saved the %label HM Display Profile Entity.', [ + $this->messenger()->addMessage($this->t('Saved the %label HM Display Profile.', [ '%label' => $hm_display_profile->label(), ])); } diff --git a/src/HmDisplayProfileListBuilder.php b/src/HmDisplayProfileListBuilder.php index f863ce545ada7e4bcbfca097db9a8d0bd7d077d1..a871844ff3f1d1b3775077905944fe3f535fbf63 100644 --- a/src/HmDisplayProfileListBuilder.php +++ b/src/HmDisplayProfileListBuilder.php @@ -14,7 +14,7 @@ class HmDisplayProfileListBuilder extends ConfigEntityListBuilder { * {@inheritdoc} */ public function buildHeader() { - $header['label'] = $this->t('HM Display Profile Entity'); + $header['label'] = $this->t('HM Display Profile'); $header['id'] = $this->t('Machine name'); return $header + parent::buildHeader(); } @@ -25,7 +25,7 @@ class HmDisplayProfileListBuilder extends ConfigEntityListBuilder { public function buildRow(EntityInterface $entity) { $row['label'] = $entity->label(); $row['id'] = $entity->id(); - // You probably want a few more properties here... + return $row + parent::buildRow($entity); }