You are here

public static function BlazyDefault::getInstance in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/BlazyDefault.php \Drupal\blazy\BlazyDefault::getInstance()

Returns the static instance of this class.

File

src/BlazyDefault.php, line 39

Class

BlazyDefault
Defines shared plugin default settings for field formatter and Views style.

Namespace

Drupal\blazy

Code

public static function getInstance() {
  if (is_null(self::$instance)) {
    self::$instance = new BlazyDefault();
  }
  return self::$instance;
}