You are here

protected function ContentEntity::load in Workbench Moderation to Content Moderation 8.2

Streams the available entities.

Return value

\Generator

1 call to ContentEntity::load()
ContentEntity::initializeIterator in src/Plugin/migrate/source/ContentEntity.php
Initializes the iterator with the source data.
1 method overrides ContentEntity::load()
ContentEntityRevision::load in src/Plugin/migrate/source/ContentEntityRevision.php
Streams the available entities.

File

src/Plugin/migrate/source/ContentEntity.php, line 76

Class

ContentEntity
Loads certain fields from all content entities of a specific type.

Namespace

Drupal\wbm2cm\Plugin\migrate\source

Code

protected function load() {
  foreach ($this->storage
    ->getQuery()
    ->execute() as $id) {
    (yield $this->storage
      ->load($id));
  }
}