add custom option hook
This commit is contained in:
bovenliggende
5dcc196801
commit
c6bd44f466
@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user