You are here

public function WrapperPluginBase::getObject in Backup and Migrate 8.4

Get the Backup and Migrate plugin object.

Return value

BackupMigrate\Core\Plugin\PluginInterface;

3 calls to WrapperPluginBase::getObject()
DestinationPluginBase::alterBackupMigrate in src/EntityPlugins/DestinationPluginBase.php
Alter the backup and migrate object to add the source and required services.
DrupalFilesSourcePlugin::alterBackupMigrate in src/Plugin/BackupMigrateSource/DrupalFilesSourcePlugin.php
Alter the backup and migrate object to add the source and required services.
SourcePluginBase::alterBackupMigrate in src/EntityPlugins/SourcePluginBase.php
Alter the backup and 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/EntityPlugins/WrapperPluginBase.php, line 31

Class

WrapperPluginBase
Class WrapperPluginBase.

Namespace

BackupMigrate\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());
  }
}