function TemporaryArrayObjectThrowingExceptions::getIterator
Same name in other branches
- 10 core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php \Drupal\jsonapi\Normalizer\Value\TemporaryArrayObjectThrowingExceptions::getIterator()
- 11.x core/modules/jsonapi/src/Normalizer/Value/TemporaryArrayObjectThrowingExceptions.php \Drupal\jsonapi\Normalizer\Value\TemporaryArrayObjectThrowingExceptions::getIterator()
Create a new iterator from an ArrayObject instance.
Return value
\Iterator An iterator from the ArrayObject.
Throws
\Exception This class does not support this action but it must implement it, because it is extending \ArrayObject.
File
-
core/
modules/ jsonapi/ src/ Normalizer/ Value/ TemporaryArrayObjectThrowingExceptions.php, line 113
Class
- TemporaryArrayObjectThrowingExceptions
- An \ArrayObject that throws an exception when used as an ArrayObject.
Namespace
Drupal\jsonapi\Normalizer\ValueCode
public function getIterator() : \Iterator {
throw new \Exception('This ' . __CLASS__ . ' does not support this action but it must implement it, because it is extending \\ArrayObject.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.