Mercurial > hg > isophonics-drupal-site
diff core/modules/contextual/contextual.module @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/contextual/contextual.module Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/contextual/contextual.module Thu May 09 15:33:08 2019 +0100 @@ -5,6 +5,7 @@ * Adds contextual links to perform actions related to elements on a page. */ +use Drupal\Core\Url; use Drupal\Component\Serialization\Json; use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Language\LanguageInterface; @@ -90,7 +91,7 @@ ]; $sample_picture = \Drupal::service('renderer')->render($sample_picture); $output .= '<li>' . t('Hovering over the area of interest will temporarily make the contextual links button visible (which looks like a pencil in most themes, and is normally displayed in the upper right corner of the area). The icon typically looks like this: @picture', ['@picture' => $sample_picture]) . '</li>'; - $output .= '<li>' . t('If you have the <a href=":toolbar">Toolbar module</a> enabled, clicking the contextual links button in the toolbar (which looks like a pencil) will make all contextual links buttons on the page visible. Clicking this button again will toggle them to invisible.', [':toolbar' => (\Drupal::moduleHandler()->moduleExists('toolbar')) ? \Drupal::url('help.page', ['name' => 'toolbar']) : '#']) . '</li>'; + $output .= '<li>' . t('If you have the <a href=":toolbar">Toolbar module</a> enabled, clicking the contextual links button in the toolbar (which looks like a pencil) will make all contextual links buttons on the page visible. Clicking this button again will toggle them to invisible.', [':toolbar' => (\Drupal::moduleHandler()->moduleExists('toolbar')) ? Url::fromRoute('help.page', ['name' => 'toolbar'])->toString() : '#']) . '</li>'; $output .= '</ol>'; $output .= t('Once the contextual links button for the area of interest is visible, click the button to display the links.'); $output .= '</dd>';