You are here

function masonry_loaded in Masonry API 8

Same name and namespace in other branches
  1. 7.3 masonry.module \masonry_loaded()
  2. 7.2 masonry.module \masonry_loaded()

Check if the Masonry and imagesLoaded libraries have been loaded.

Return value

A boolean indicating the loaded status.

Deprecated

Use \Drupal::service('masonry.service')->isMasonryInstalled() and \Drupal::service('masonry.service')->isImagesloadedInstalled() instead.

File

./masonry.module, line 61
Provides the hooks implementation to interface with Libraries API.

Code

function masonry_loaded() {
  return \Drupal::service('masonry.service')
    ->isMasonryInstalled() && \Drupal::service('masonry.service')
    ->isImagesloadedInstalled();
}