public function registerComponents(Nette\Application\UI\Presenter $presenter) { if (!$this->getConfigurations()['labels']['enable']) { return; } $presenter->addComponent($this->labels->create(), $this->getConfigurations()['labels']['componentName']); }