BlockAdBlock

Component ID

2617744

Component name

BlockAdBlock

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Exposes BlockAdBlock plugin through the Libraries API. This is intended to be used by other modules or by any custom code you write.

Usage

Recommended usage is in the #attached property of a render array:

function mymodule_preprocess_html(&$variables) {
  $variables['page']['page_bottom']['#attached']['libraries_load'][] = array('blockadblock');
}

Alternate usage is via libraries_load():

function mymodule_some_function() {
  libraries_load('blockadblock');
}

For the JavaScript side, please refer to the documentation for the original plugin.

Notes

  • The library file is set to the footer scope, so it'll load as part of the script tags right before the closing body tag.