mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
commit
6b56476f66
@ -473,6 +473,17 @@ class Filter extends WidgetBase
|
||||
$this->allScopes[$name] = $scopeObj;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Programatically remove a scope, used for extensibility.
|
||||
* @param string $scopeName Scope name
|
||||
*/
|
||||
public function removeScope($scopeName)
|
||||
{
|
||||
if (isset($this->allScopes[$scopeName])) {
|
||||
unset($this->allScopes[$scopeName]);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a filter scope object from name and configuration.
|
||||
|
Loading…
x
Reference in New Issue
Block a user