You are here

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

Same name and namespace in other branches
  1. 8.4 src/Entity/WrapperEntityBase.php \Drupal\backup_migrate\Entity\WrapperEntityBase::getObject()

Return value

SourcePluginInterface

Throws

\Drupal\backup_migrate\Core\Exception\BackupMigrateException

File

src/Entity/WrapperEntityBase.php, line 46

Class

WrapperEntityBase
A configuration entity that wraps a Backup and Migrate plugin.

Namespace

Drupal\backup_migrate\Entity

Code

public function getObject() {
  if ($plugin = $this
    ->getPlugin()) {
    return $plugin
      ->getObject();
  }
}