You are here

public function WrapperEntityBase::getPluginDefinition 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::getPluginDefinition()

Get the type plugin for this source.

Return value

mixed

Throws

\BackupMigrate\Core\Exception\BackupMigrateException

1 call to WrapperEntityBase::getPluginDefinition()
WrapperEntityBase::access in src/Entity/WrapperEntityBase.php
Checks data value access.

File

src/Entity/WrapperEntityBase.php, line 76

Class

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

Namespace

Drupal\backup_migrate\Entity

Code

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