SourcePluginBase.php in Backup and Migrate 5.0.x
File
src/Drupal/EntityPlugins/SourcePluginBase.phpView 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
Name | Description |
---|---|
SourcePluginBase | @package Drupal\backup_migrate\Drupal\EntityPlugins |