public function WrapperEntityBase::getPluginCollection in Backup and Migrate 8.4
Same name and namespace in other branches
- 5.0.x src/Entity/WrapperEntityBase.php \Drupal\backup_migrate\Entity\WrapperEntityBase::getPluginCollection()
Return value
\Drupal\block\BlockPluginCollection
1 call to WrapperEntityBase::getPluginCollection()
- WrapperEntityBase::getPluginCollections in src/
Entity/ WrapperEntityBase.php - Gets the plugin collections used by this entity.
File
- src/
Entity/ WrapperEntityBase.php, line 100
Class
- WrapperEntityBase
- A configuration entity that wraps a Backup and Migrate plugin.
Namespace
Drupal\backup_migrate\EntityCode
public function getPluginCollection() {
if ($this
->get('type')) {
if (!$this->pluginCollection) {
$config = [
'name' => $this
->get('label'),
] + (array) $this
->get('config');
$this->pluginCollection = new DefaultSingleLazyPluginCollection($this
->getPluginManager(), $this
->get('type'), $config);
}
return $this->pluginCollection;
}
return [];
}