You are here

function salvattore_preprocess_views_view_salvattore in Salvattore (CSS driven Masonry) 8

Same name and namespace in other branches
  1. 7.2 salvattore.module \salvattore_preprocess_views_view_salvattore()

Implements template_preprocess_views_view().

File

./salvattore.module, line 60
Salvattore masonry plugin for views.

Code

function salvattore_preprocess_views_view_salvattore(&$vars) {

  // @FIXME
  // The Assets API has totally changed. CSS, JavaScript, and libraries are now
  // attached directly to render arrays using the #attached property.
  //
  //
  // @see https://www.drupal.org/node/2169605
  // @see https://www.drupal.org/node/2408597
  // drupal_add_js(salvattore_get_path(), array('scope' => 'footer'));
  // @FIXME
  // Could not extract the default value because it is either indeterminate, or
  // not scalar. You'll need to provide a default value in
  // config/install/salvattore.settings.yml and config/schema/salvattore.schema.yml.
  if (\Drupal::config('salvattore.settings')
    ->get('salvattore_load_default_css')) {

    // @FIXME
    // The Assets API has totally changed. CSS, JavaScript, and libraries are now
    // attached directly to render arrays using the #attached property.
    //
    //
    // @see https://www.drupal.org/node/2169605
    // @see https://www.drupal.org/node/2408597
    // drupal_add_css(drupal_get_path('module', 'salvattore') . '/css/salvattore_default.css', array(
    //       'type' => 'file',
    //       'preprocess' => FALSE, // see README
    //     ));
  }
}