Gets a reference to the internal storage.
Should be called like:
$reference =& $obj
->getReference();
Return value
Returns the stored internal reference.
File
- drupal/core/lib/Drupal/Core/Template/TwigReference.php, line 86
- Definition of Drupal\Core\Template\TwigReference.
Class
- TwigReference
- A class used to pass variables by reference while they are used in twig.
Namespace
Drupal\Core\Template
Code
public function &getReference() {
return $this->writableRef;
}