getVariable() public method

Returns a variable defined in this context
public getVariable ( string $name ) : string
$name string name of variable to return
return string the variable
Exemplo n.º 1
0
 /**
  * Returns the SassScript object for this variable.
  * @param SassContext $context context of the variable
  * @return SassLiteral the SassScript object for this variable
  */
 public function evaluate($context)
 {
     return $context->getVariable($this->name);
 }