You are here

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

Streams the available entities.

Return value

\Generator

Overrides ContentEntity::load

File

src/Plugin/migrate/source/ContentEntityRevision.php, line 18

Class

ContentEntityRevision
Loads certain fields from all revisions of all entities of a specific type.

Namespace

Drupal\wbm2cm\Plugin\migrate\source

Code

protected function load() {
  $revisions = $this->storage
    ->getQuery()
    ->allRevisions()
    ->execute();
  foreach (array_keys($revisions) as $vid) {
    (yield $this->storage
      ->loadRevision($vid));
  }
}