You are here

public function WrapperEntityBase::getPlugin in Backup and Migrate 8.4

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

Get the type plugin for this source.

Return value

mixed

Throws

\BackupMigrate\Core\Exception\BackupMigrateException

2 calls to WrapperEntityBase::getPlugin()
WrapperEntityBase::getObject in src/Entity/WrapperEntityBase.php
WrapperEntityBase::getPluginDefinition in src/Entity/WrapperEntityBase.php
Get the type plugin for this source.

File

src/Entity/WrapperEntityBase.php, line 62

Class

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

Namespace

Drupal\backup_migrate\Entity

Code

public function getPlugin() {
  if ($this
    ->get('type')) {
    return $this
      ->getPluginCollection()
      ->get($this
      ->get('type'));
  }
  return NULL;
}