function cms_content_sync_local_tasks_alter in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 cms_content_sync.module \cms_content_sync_local_tasks_alter()
- 2.1.x cms_content_sync.module \cms_content_sync_local_tasks_alter()
Implements hook_local_tasks_alter().
Parameters
array $local_tasks: Definitions to alter.
File
- ./
cms_content_sync.module, line 1999 - Module file for cms_content_sync.
Code
function cms_content_sync_local_tasks_alter(&$local_tasks) {
// Change tab title based on whether the subscriber is using the cloud or self-hosted version.
$local_tasks['entity.cms_content_sync.pull']['title'] = _cms_content_sync_get_repository_name();
}