Issue #1784846 by beltofte, Floydm: Standardize capitalization on actions in operations in shortcut: 'list links', 'edit set', 'delete set', 'edit, 'delete'.
parent
ca5a3ef054
commit
1af585da63
|
@ -29,18 +29,18 @@ class ShortcutListController extends ConfigEntityListController {
|
|||
public function getOperations(EntityInterface $entity) {
|
||||
$uri = $entity->uri();
|
||||
$operations['list'] = array(
|
||||
'title' => t('list links'),
|
||||
'title' => t('List links'),
|
||||
'href' => $uri['path'],
|
||||
);
|
||||
$operations['edit'] = array(
|
||||
'title' => t('edit set'),
|
||||
'title' => t('Edit set'),
|
||||
'href' => $uri['path'] . '/edit',
|
||||
'options' => $uri['options'],
|
||||
'weight' => 10,
|
||||
);
|
||||
if (shortcut_set_delete_access($entity)) {
|
||||
$operations['delete'] = array(
|
||||
'title' => t('delete set'),
|
||||
'title' => t('Delete set'),
|
||||
'href' => $uri['path'] . '/delete',
|
||||
'options' => $uri['options'],
|
||||
'weight' => 100,
|
||||
|
|
|
@ -222,11 +222,11 @@ function shortcut_set_customize($form, &$form_state, $shortcut_set) {
|
|||
);
|
||||
|
||||
$links['edit'] = array(
|
||||
'title' => t('edit'),
|
||||
'title' => t('Edit'),
|
||||
'href' => "admin/config/user-interface/shortcut/link/$mlid",
|
||||
);
|
||||
$links['delete'] = array(
|
||||
'title' => t('delete'),
|
||||
'title' => t('Delete'),
|
||||
'href' => "admin/config/user-interface/shortcut/link/$mlid/delete",
|
||||
);
|
||||
$form['shortcuts']['links'][$mlid]['operations'] = array(
|
||||
|
|
|
@ -286,16 +286,11 @@ $settings['update_free_access'] = FALSE;
|
|||
/**
|
||||
* Twig debugging:
|
||||
*
|
||||
* When debugging is enabled:
|
||||
* - The markup of each Twig template is surrounded by HTML comments which
|
||||
* contain theming information such as template file name suggestions.
|
||||
* - The 'dump' function can be used in Twig templates to output information
|
||||
* about template variables.
|
||||
* - Twig templates are automatically recompiled whenever the source code
|
||||
* changes (see twig_auto_reload below).
|
||||
* When enabled, you can use the 'dump' function in Twig templates to output
|
||||
* information about variables, and templates are automatically recompiled
|
||||
* whenever the source code changes.
|
||||
*
|
||||
* For more information about debugging Twig templates, see
|
||||
* http://drupal.org/node/1906392.
|
||||
* @see http://drupal.org/node/1906392
|
||||
*
|
||||
* Not recommended in production environments (Default: FALSE).
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue