public function isActionDisabled($actionType)
{
switch ($actionType) {
case 'actions':
return in_array($this->getAction(), $this->disabledActions);
case 'ajax':
return in_array($this->action, $this->disabledAJAXActions);
}
throw new \Exception($actionType . ' is not a valid action type');
}