function quote_page_attachments in Quote 8.2
Implements hook_page_attachments().
File
- ./
quote.module, line 101 - Allows users to quote posts or comments.
Code
function quote_page_attachments(array &$attachments) {
$attachments['#attached']['library'][] = 'quote/quote';
$config = \Drupal::config('quote.settings');
$attachments['#attached']['drupalSettings']['quote']['quote_selector'] = $config
->get('quote_selector');
$attachments['#attached']['drupalSettings']['quote']['quote_limit'] = $config
->get('quote_limit');
$attachments['#attached']['drupalSettings']['quote']['quote_selector_comment_quote_all'] = $config
->get('quote_selector_comment_quote_all');
$attachments['#attached']['drupalSettings']['quote']['quote_selector_node_quote_all'] = $config
->get('quote_selector_node_quote_all');
$attachments['#attached']['drupalSettings']['quote']['quote_ckeditor_support'] = $config
->get('quote_ckeditor_support');
}