public function WrapperEntityBase::getPlugin in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.4 src/Entity/WrapperEntityBase.php \Drupal\backup_migrate\Entity\WrapperEntityBase::getPlugin()
Get the type plugin for this source.
Return value
mixed
Throws
\Drupal\backup_migrate\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 59
Class
- WrapperEntityBase
- A configuration entity that wraps a Backup and Migrate plugin.
Namespace
Drupal\backup_migrate\EntityCode
public function getPlugin() {
if ($this
->get('type')) {
return $this
->getPluginCollection()
->get($this
->get('type'));
}
return NULL;
}