You are here

SourcePluginBase.php in Backup and Migrate 5.0.x

File

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

namespace Drupal\backup_migrate\Drupal\EntityPlugins;

use Drupal\backup_migrate\Core\Main\BackupMigrateInterface;

/**
 *
 *
 * @package Drupal\backup_migrate\Drupal\EntityPlugins
 */
abstract class SourcePluginBase extends WrapperPluginBase implements SourcePluginInterface {

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

}

Classes

Namesort descending Description
SourcePluginBase @package Drupal\backup_migrate\Drupal\EntityPlugins