add custom option hook
Dieser Commit ist enthalten in:
Ursprung
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…
In neuem Issue referenzieren
Einen Benutzer sperren