function LinkCollection::getIterator
Attributes
#[\ReturnTypeWillChange]
File
-
core/
modules/ jsonapi/ src/ JsonApiResource/ LinkCollection.php, line 65
Class
- LinkCollection
- Contains a set of JSON:API Link objects.
Namespace
Drupal\jsonapi\JsonApiResourceCode
public function getIterator() {
assert(!is_null($this->context), 'A LinkCollection is invalid unless a context has been established.');
return new \ArrayIterator($this->links);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.