Skip to content

Commit

Permalink
Merge pull request #100 from localgovdrupal/feature/718-content-tabs-…
Browse files Browse the repository at this point in the history
…weights-workflows-module

Updating local task weights (localgov Issue 718)
  • Loading branch information
finnlewis authored Jun 13, 2024
2 parents a57c30f + f9084a8 commit a89da50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion localgov_workflows.module
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ function localgov_workflows_menu_local_tasks_alter(&$data, $route_name, Refinabl
}
}

// Rename 'Scheduled transitions' tab to 'Scheduling'.
// Rename 'Scheduled transitions' tab to 'Scheduling' and increase its weight.
if (isset($data['tabs'][0]['entity.scheduled_transition.collection'])) {
$data['tabs'][0]['entity.scheduled_transition.collection']['#link']['title'] = t('Scheduling');
$data['tabs'][0]['entity.scheduled_transition.collection']['#weight'] = 70;
}
if (isset($data['tabs'][0]['scheduled_transitions.tasks:node.scheduled_transitions']['#link']['title'])) {
$title = $data['tabs'][0]['scheduled_transitions.tasks:node.scheduled_transitions']['#link']['title'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ entity.localgov_service_contact.collection:
title: 'Service contacts'
route_name: entity.localgov_service_contact.collection
base_route: system.admin_content
weight: 10
weight: 80

0 comments on commit a89da50

Please sign in to comment.