added titles attributes to studio, random, search links
This commit is contained in:
@@ -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'),
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user