You are here

function deploy_toolbar_alter in Deploy - Content Staging 8

Implements hook_toolbar_alter().

File

./deploy.module, line 47
UI module to deploy content entities.

Code

function deploy_toolbar_alter(&$items) {
  $items['workspace_switcher']['tray']['deployments'] = [
    '#type' => 'link',
    '#title' => t('Deployments'),
    '#url' => Url::fromRoute('entity.replication.collection'),
    '#attributes' => [
      'class' => 'deployments',
      'title' => 'View all deployments',
    ],
  ];
}