Issue #2360241 by martin107: Fixed MenuLinkManager uses PluginNotFoundException incorrectly.
parent
4cdd94b947
commit
eeca610415
|
@ -207,7 +207,7 @@ class MenuLinkManager implements MenuLinkManagerInterface {
|
|||
public function getDefinition($plugin_id, $exception_on_invalid = TRUE) {
|
||||
$definition = $this->treeStorage->load($plugin_id);
|
||||
if (empty($definition) && $exception_on_invalid) {
|
||||
throw new PluginNotFoundException(String::format('@plugin_id could not be found', array('@plugin_id' => $plugin_id)));
|
||||
throw new PluginNotFoundException($plugin_id);
|
||||
}
|
||||
return $definition;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue