You are here

public function WrapperPluginBase::getObject in Backup and Migrate 5.0.x

Get the Backup and Migrate plugin object.

Return value

Drupal\backup_migrate\Core\Plugin\PluginInterface

3 calls to WrapperPluginBase::getObject()
DestinationPluginBase::alterBackupMigrate in src/Drupal/EntityPlugins/DestinationPluginBase.php
Alter the backup_migrate object to add the source and required services.
DrupalFilesSourcePlugin::alterBackupMigrate in src/Plugin/BackupMigrateSource/DrupalFilesSourcePlugin.php
Alter the backup_migrate object to add the source and required services.
SourcePluginBase::alterBackupMigrate in src/Drupal/EntityPlugins/SourcePluginBase.php
Alter the backup_migrate object to add the source and required services.
2 methods override WrapperPluginBase::getObject()
DefaultDBSourcePlugin::getObject in src/Plugin/BackupMigrateSource/DefaultDBSourcePlugin.php
Get the Backup and Migrate plugin object.
EntireSiteSourcePlugin::getObject in src/Plugin/BackupMigrateSource/EntireSiteSourcePlugin.php
Get the Backup and Migrate plugin object.

File

src/Drupal/EntityPlugins/WrapperPluginBase.php, line 29

Class

WrapperPluginBase
A base class for a Drupal source or destination wrapper plugin.

Namespace

Drupal\backup_migrate\Drupal\EntityPlugins

Code

public function getObject() {

  // If the class to wrap was specified in the annotation then add that class.
  $info = $this
    ->getPluginDefinition();
  if ($info['wrapped_class']) {
    return new $info['wrapped_class']($this
      ->getConfig());
  }
}