added titles attributes to studio, random, search links

This commit is contained in:
2018-10-23 19:36:55 +02:00
parent 34405c3db8
commit d339fdd732
5 changed files with 11 additions and 3 deletions
@@ -238,10 +238,12 @@ function edlp_corpus_page_attachments(array &$attachments) {
$url = Url::fromRoute('edlp_corpus.corpusjson');
$attachments['#attached']['drupalSettings']['edlp_corpus']['load_corpus_ajax_url'] = $url->getInternalPath();
// load corpus
$url = Url::fromRoute('edlp_corpus.articlesindex');
$attachments['#attached']['drupalSettings']['edlp_corpus']['articlesindex_url'] = $url->getInternalPath();
// random btn link title
$attachments['#attached']['drupalSettings']['edlp_corpus']['random_link_title'] = t('Shuffle the selection');
}
@@ -29,6 +29,7 @@ class EdlpSearchLinkBlock extends BlockBase {
'attributes' => array(
'data-drupal-link-system-path' => $url->getInternalPath(),
'class' => array('ajax-link'),
'title' => t('Search sounds by title, speaker, language, genre or entry'),
)
)
);
@@ -60,6 +60,7 @@ class StudioLinkBlock extends BlockBase implements ContainerFactoryPluginInterf
'attributes' => array(
'data-drupal-link-system-path' => $url->getInternalPath(),
'class' => array('ajax-link'),
'title' => t('The studio displays your bookmarked sounds. You can save them and create your own playlists'),
)
)
);