Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/views_ui/views_ui.module @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
16 function views_ui_help($route_name, RouteMatchInterface $route_match) { | 16 function views_ui_help($route_name, RouteMatchInterface $route_match) { |
17 switch ($route_name) { | 17 switch ($route_name) { |
18 case 'help.page.views_ui': | 18 case 'help.page.views_ui': |
19 $output = ''; | 19 $output = ''; |
20 $output .= '<h3>' . t('About') . '</h3>'; | 20 $output .= '<h3>' . t('About') . '</h3>'; |
21 $output .= '<p>' . t('The Views UI module provides an interface for managing views for the <a href=":views">Views module</a>. For more information, see the <a href=":handbook">online documentation for the Views UI module</a>.', [':views' => \Drupal::url('help.page', ['name' => 'views']), ':handbook' => 'https://www.drupal.org/documentation/modules/views_ui']) . '</p>'; | 21 $output .= '<p>' . t('The Views UI module provides an interface for managing views for the <a href=":views">Views module</a>. For more information, see the <a href=":handbook">online documentation for the Views UI module</a>.', [':views' => Url::fromRoute('help.page', ['name' => 'views'])->toString(), ':handbook' => 'https://www.drupal.org/documentation/modules/views_ui']) . '</p>'; |
22 $output .= '<h3>' . t('Uses') . '</h3>'; | 22 $output .= '<h3>' . t('Uses') . '</h3>'; |
23 $output .= '<dl>'; | 23 $output .= '<dl>'; |
24 $output .= '<dt>' . t('Creating and managing views') . '</dt>'; | 24 $output .= '<dt>' . t('Creating and managing views') . '</dt>'; |
25 $output .= '<dd>' . t('Views can be created from the <a href=":list">Views list page</a> by using the "Add view" action. Existing views can be managed from the <a href=":list">Views list page</a> by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', [':list' => \Drupal::url('entity.view.collection', ['name' => 'views_ui'])]) . '</dd>'; | 25 $output .= '<dd>' . t('Views can be created from the <a href=":list">Views list page</a> by using the "Add view" action. Existing views can be managed from the <a href=":list">Views list page</a> by locating the view in the "Enabled" or "Disabled" list and selecting the desired operation action, for example "Edit".', [':list' => Url::fromRoute('entity.view.collection', ['name' => 'views_ui'])->toString()]) . '</dd>'; |
26 $output .= '<dt>' . t('Enabling and disabling views') . '<dt>'; | 26 $output .= '<dt>' . t('Enabling and disabling views') . '<dt>'; |
27 $output .= '<dd>' . t('Views can be enabled or disabled from the <a href=":list">Views list page</a>. To enable a view, find the view within the "Disabled" list and select the "Enable" operation. To disable a view find the view within the "Enabled" list and select the "Disable" operation.', [':list' => \Drupal::url('entity.view.collection', ['name' => 'views_ui'])]) . '</dd>'; | 27 $output .= '<dd>' . t('Views can be enabled or disabled from the <a href=":list">Views list page</a>. To enable a view, find the view within the "Disabled" list and select the "Enable" operation. To disable a view find the view within the "Enabled" list and select the "Disable" operation.', [':list' => Url::fromRoute('entity.view.collection', ['name' => 'views_ui'])->toString()]) . '</dd>'; |
28 $output .= '<dt>' . t('Exporting and importing views') . '</dt>'; | 28 $output .= '<dt>' . t('Exporting and importing views') . '</dt>'; |
29 $output .= '<dd>' . t('Views can be exported and imported as configuration files by using the <a href=":config">Configuration Manager module</a>.', [':config' => (\Drupal::moduleHandler()->moduleExists('config')) ? \Drupal::url('help.page', ['name' => 'config']) : '#']) . '</dd>'; | 29 $output .= '<dd>' . t('Views can be exported and imported as configuration files by using the <a href=":config">Configuration Manager module</a>.', [':config' => (\Drupal::moduleHandler()->moduleExists('config')) ? Url::fromRoute('help.page', ['name' => 'config'])->toString() : '#']) . '</dd>'; |
30 $output .= '</dl>'; | 30 $output .= '</dl>'; |
31 return $output; | 31 return $output; |
32 } | 32 } |
33 } | 33 } |
34 | 34 |