Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Data.php

function Data::getIterator

Same name in this branch
  1. 11.1.x core/modules/jsonapi/src/JsonApiResource/Data.php \Drupal\jsonapi\JsonApiResource\Data::getIterator()

File

vendor/symfony/var-dumper/Cloner/Data.php, line 115

Class

Data
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper\Cloner

Code

public function getIterator() : \Traversable {
    if (!\is_array($value = $this->getValue())) {
        throw new \LogicException(\sprintf('"%s" object holds non-iterable type "%s".', self::class, get_debug_type($value)));
    }
    yield from $value;
}
RSS feed
Powered by Drupal