/** * @param PluginInterface $plugin */ public function addPlugin(PluginInterface $plugin) { $this->plugins[$plugin->getName()] = $plugin; $this->titles[$plugin->getName()] = $plugin->getTitle(); ksort($this->plugins); ksort($this->titles); }