You are here

function script_manager_page_bottom in Script Manager 8

Implements hook_page_bottom().

File

./script_manager.module, line 14
Manage JavaScript snippets included in your website.

Code

function script_manager_page_bottom(&$page) {
  $page['script_manager'] = \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(ScriptPlacementManager::class)
    ->getRenderedScriptsForPosition(ScriptInterface::POSITION_BOTTOM);
}