You are here

public function ContentEntityBase::getIterator in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getIterator()
  2. 10 core/lib/Drupal/Core/Entity/ContentEntityBase.php \Drupal\Core\Entity\ContentEntityBase::getIterator()

File

core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 661

Class

ContentEntityBase
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function getIterator() {
  return new \ArrayIterator($this
    ->getFields());
}