You are here

SourcePluginBase.php in Backup and Migrate 8.4

File

src/EntityPlugins/SourcePluginBase.php
View source
<?php

namespace BackupMigrate\Drupal\EntityPlugins;

use BackupMigrate\Core\Main\BackupMigrateInterface;

/**
 * Class SourcePluginBase.
 *
 * @package BackupMigrate\Drupal\EntityPlugins
 */
abstract class SourcePluginBase extends WrapperPluginBase implements SourcePluginInterface {

  /**
   * {@inheritdoc}
   */
  public function alterBackupMigrate(BackupMigrateInterface $bam, $key, $options = []) {
    $bam
      ->sources()
      ->add($key, $this
      ->getObject());
  }

}

Classes

Namesort descending Description
SourcePluginBase Class SourcePluginBase.