Skip to content
Snippets Groups Projects
Commit 6471fdb2 authored by Bernd Oliver Suenderhauf's avatar Bernd Oliver Suenderhauf
Browse files

Partly revert issue #3044678 by Pancho: Fix coding style issues all around backend plugins

parent 94c59d38
No related branches found
No related tags found
No related merge requests found
...@@ -29,30 +29,4 @@ class FillPdfBackendManager extends DefaultPluginManager { ...@@ -29,30 +29,4 @@ class FillPdfBackendManager extends DefaultPluginManager {
$this->setCacheBackend($cache_backend, 'fillpdf_backend_info_plugins'); $this->setCacheBackend($cache_backend, 'fillpdf_backend_info_plugins');
} }
/**
* Gets the definitions of all FillPDF backend plugins.
*
* @return mixed[]
* An associative array of plugin definitions, keyed by plugin ID and sorted
* by weight.
*/
public function getDefinitions() {
$definitions = parent::getDefinitions();
foreach ($definitions as $id => $definition) {
if (!isset($definition['description'])) {
$definitions[$id]['description'] = '';
}
if (!isset($definition['weight'])) {
$definitions[$id]['weight'] = 0;
}
}
uasort($definitions, function ($a, $b) {
return $a['weight'] - $b['weight'];
});
return $definitions;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment