Refs #599 - Adds method to get the list widget object from the controller
This commit is contained in:
parent
153fcfbb13
commit
dd5a46d815
|
|
@ -260,6 +260,18 @@ class ListController extends ControllerBehavior
|
|||
return $this->listWidgets[$definition]->onRefresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the widget used by this behavior.
|
||||
* @return Backend\Classes\WidgetBase
|
||||
*/
|
||||
public function listGetWidget($definition = null)
|
||||
{
|
||||
if (!$definition)
|
||||
$definition = $this->primaryDefinition;
|
||||
|
||||
return array_get($this->listWidgets, $definition);
|
||||
}
|
||||
|
||||
//
|
||||
// Overrides
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in New Issue