add custom option hook

This commit is contained in:
O3-Shop 2023-04-20 23:25:40 +02:00 committed by Daniel Seifert
parent 5dcc196801
commit c6bd44f466
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -73,6 +73,7 @@ class Configuration
$this->addUrlHandling();
$this->addPlugins();
$this->addToolbar();
$this->addCustomOptions();
}
protected function addOption(OptionInterface $optionInstance): void
@ -90,6 +91,17 @@ class Configuration
$this->options[$optionInstance->getKey()] = $option;
}
/**
* @param string $optionKey
* @return void
*/
protected function removeOption(string $optionKey): void
{
if (isset($this->options[$optionKey])) {
unset($this->options[$optionKey]);
}
}
public function getConfig(): string
{
$sConfig = '';
@ -166,4 +178,8 @@ class Configuration
{
$this->addOption(oxNew(Toolbar::class, $this->loader));
}
protected function addCustomOptions(): void
{
}
}