Drupal 8  8.0.2
Variable Class Reference

Static Public Member Functions

static export ($var, $prefix= '')
 

Detailed Description

Provides helpers for dealing with variables.

Member Function Documentation

static export (   $var,
  $prefix = '' 
)
static

Drupal-friendly var_export().

Parameters
mixed$varThe variable to export.
string$prefixA prefix that will be added at the beginning of every lines of the output.
Returns
string The variable exported in a way compatible to Drupal's coding standards.

Referenced by VariableTest\testExport().

Here is the caller graph for this function:


The documentation for this class was generated from the following file: