Issue #2360241 by martin107: Fixed MenuLinkManager uses PluginNotFoundException incorrectly.

8.0.x
Nathaniel Catchpole 2014-10-22 10:59:33 +01:00
parent 4cdd94b947
commit eeca610415
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}