You are here

private static function GinLbExtension::getGinLbClasses in Gin Layout Builder 1.0.x

Returns a list of all glb- prefixed classes. The classes are generated by an postcss plugin.

Return value

[] The classes

1 call to GinLbExtension::getGinLbClasses()
GinLbExtension::ginClasses in src/TwigExtension/GinLbExtension.php
Replaces all theme classes with gin classes.

File

src/TwigExtension/GinLbExtension.php, line 40

Class

GinLbExtension
A class providing Gin Twig function.

Namespace

Drupal\gin_lb\TwigExtension

Code

private static function getGinLbClasses() {
  if (GinLbExtension::$ginLbClasses === NULL) {
    GinLbExtension::$ginLbClasses = json_decode(file_get_contents(__DIR__ . '/../classes.json'));
  }
  return GinLbExtension::$ginLbClasses;
}