You are here

class MigrateEntityReferenceRevisions in Entity Reference Revisions 8

Class MigrateEntityReferenceRevisions

Hierarchy

Expanded class hierarchy of MigrateEntityReferenceRevisions

File

src/Plugin/Derivative/MigrateEntityReferenceRevisions.php, line 11

Namespace

Drupal\entity_reference_revisions\Plugin\Derivative
View source
class MigrateEntityReferenceRevisions extends MigrateEntityRevision {

  /**
   * {@inheritdoc}
   */
  public function getDerivativeDefinitions($basePluginDefinition) {
    foreach ($this->entityDefinitions as $entityType => $entityInfo) {
      if ($entityInfo
        ->getKey('revision')) {
        $this->derivatives[$entityType] = [
          'id' => "entity_reference_revisions:{$entityType}",
          'class' => EntityReferenceRevisions::class,
          'requirements_met' => 1,
          'provider' => $entityInfo
            ->getProvider(),
        ];
      }
    }
    return $this->derivatives;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateEntityReferenceRevisions::getDerivativeDefinitions public function Gets the definition of all derivatives of a base plugin. Overrides MigrateEntityRevision::getDerivativeDefinitions
MigrateEntityRevision::$derivatives protected property List of derivative definitions.
MigrateEntityRevision::$entityDefinitions protected property The entity definitions
MigrateEntityRevision::create public static function Creates a new class instance. Overrides ContainerDeriverInterface::create
MigrateEntityRevision::getDerivativeDefinition public function Gets the definition of a derivative plugin. Overrides DeriverInterface::getDerivativeDefinition
MigrateEntityRevision::__construct public function Constructs a MigrateEntity object.