add custom option hook

This commit is contained in:
O3-Shop 2023-04-20 23:25:40 +02:00 gecommit door Daniel Seifert
bovenliggende 5dcc196801
commit c6bd44f466
Getekend door: DanielS
GPG sleutel-ID: 8A7C4C6ED1915C6F
1 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen

Bestand weergeven

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