protected function FunctionCallsFormulaLoader::registerSetupCode

Returns setup code for the reflection scriptlet.

Return value

string Some PHP setup code

Overrides BasePhpFormulaLoader::registerSetupCode

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Factory/Loader/FunctionCallsFormulaLoader.php, line 30

Class

FunctionCallsFormulaLoader
Loads asset formulae from PHP files.

Namespace

Assetic\Factory\Loader

Code

protected function registerSetupCode() {
  return <<<'EOF'
function assetic_javascripts()
{
    global $_call;
    $_call = func_get_args();
}

function assetic_stylesheets()
{
    global $_call;
    $_call = func_get_args();
}

function assetic_image()
{
    global $_call;
    $_call = func_get_args();
}

EOF;
}