public function TwigReference::offsetSet

Sets offset in internal reference and internal storage to value.

This is just for completeness, but should never be used, because twig cannot set properties and should not.

@link http://php.net/manual/en/arrayaccess.offsetset.php

Parameters

mixed $offset: The offset to assign the value to.

mixed $value: The value to set.

File

drupal/core/lib/Drupal/Core/Template/TwigReference.php, line 102
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 offsetSet($offset, $value) {
  $this->writableRef[$offset] = $value;
  parent::offsetSet($offset, $value);
}