public function ValueContainer::offsetGet

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Extension/Twig/ValueContainer.php, line 38

Class

ValueContainer
Container for values initialized lazily from a ValueSupplierInterface.

Namespace

Assetic\Extension\Twig

Code

public function offsetGet($offset) {
  $this
    ->initialize();
  if (!array_key_exists($offset, $this->values)) {
    throw new \OutOfRangeException(sprintf('The variable "%s" does not exist.', $offset));
  }
  return $this->values[$offset];
}