function public static function Variables::create

8.x-3.x Variables.php public static Variables::create(array &$variables)

Creates a new \Drupal\bootstrap\Utility\Variables instance.

Parameters

array $variables: A theme hook variables array.

Return value

\Drupal\bootstrap\Utility\Variables The newly created variables instance.

Class

Variables
Class to help modify template variables.

Namespace

Drupal\bootstrap\Utility

Source src/Utility/Variables.php (line 44)

public static function create(array &$variables) {
  return new self($variables);
}