mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
filterExtendScopes -> listFilterExtendScopes
extendFilterScopes -> extendListFilterScopes Filter still belongs to the "List", this would help resolve conflicts if there were ever a FilterController that would carry rightful claim to "filterExtendScopes"
This commit is contained in:
parent
fe3e44efeb
commit
57aa723c23
@ -240,12 +240,12 @@ class ListController extends ControllerBehavior
|
||||
$filterWidget->bindEvent('filter.update', function () use ($widget, $filterWidget) {
|
||||
return $widget->onRefresh();
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
* Filter Widget with extensibility
|
||||
*/
|
||||
$filterWidget->bindEvent('filter.extendScopes', function () use ($filterWidget) {
|
||||
$this->controller->filterExtendScopes($filterWidget);
|
||||
$this->controller->listFilterExtendScopes($filterWidget);
|
||||
});
|
||||
|
||||
/*
|
||||
@ -462,7 +462,7 @@ class ListController extends ControllerBehavior
|
||||
* @param \Backend\Widgets\Filter $host The hosting filter widget
|
||||
* @return void
|
||||
*/
|
||||
public function filterExtendScopes($host)
|
||||
public function listFilterExtendScopes($host)
|
||||
{
|
||||
}
|
||||
|
||||
@ -565,7 +565,7 @@ class ListController extends ControllerBehavior
|
||||
* @param callable $callback
|
||||
* @return void
|
||||
*/
|
||||
public static function extendFilterScopes($callback)
|
||||
public static function extendListFilterScopes($callback)
|
||||
{
|
||||
$calledClass = self::getCalledExtensionClass();
|
||||
Event::listen('backend.filter.extendScopes', function ($widget) use ($calledClass, $callback) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user