You are here

function blazy in Blazy 8

Same name and namespace in other branches
  1. 8.2 blazy.module \blazy()
  2. 7 blazy.runtime.inc \blazy()

Provides a convenient shortcut for procedural hooks.

Return value

class The Blazy manager class instance.

39 string references to 'blazy'
Blazy::containerAttributes in src/Blazy.php
Provides container attributes for .blazy container: .field, .view, etc.
BlazyAdminExtended::openingForm in src/Dejavu/BlazyAdminExtended.php
Returns shared form elements across field formatter and Views.
BlazyAdminFormatter::buildSettingsForm in src/Form/BlazyAdminFormatter.php
Defines re-usable form elements.
BlazyAdminFormatterBase::getExcludedSettingsSummary in src/Form/BlazyAdminFormatterBase.php
Exclude the field formatter settings summary as required.
BlazyAdminTest::buildSettingsForm in tests/modules/blazy_test/src/Form/BlazyAdminTest.php
Returns all settings form elements.

... See full list

File

./blazy.module, line 19
Provides basic Blazy integration for lazy loading and multi-serving images.

Code

function blazy() {
  static $manager;
  if (!isset($manager)) {
    $manager = \Drupal::service('blazy.manager');
  }
  return $manager;
}