Skip to content

Instantly share code, notes, and snippets.

@jenter
Created December 8, 2016 16:03
Show Gist options
  • Select an option

  • Save jenter/d980a5a332a5ce6388c8238182ee4037 to your computer and use it in GitHub Desktop.

Select an option

Save jenter/d980a5a332a5ce6388c8238182ee4037 to your computer and use it in GitHub Desktop.

Revisions

  1. Jason Enter created this gist Dec 8, 2016.
    13 changes: 13 additions & 0 deletions D8 Drupal Behaviors
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    (function ($, Drupal, window, document) {
    'use strict';

    // Example of Drupal behavior loaded.
    Drupal.behaviors.exampleJS = {
    attach: function (context, settings) {

    console.log('This is loaded');

    }
    };

    })(jQuery, Drupal, this);