widgets/DefaultBehaviorDesignTimeProvider.php
public function getDefaultConfiguration($class, $controllerModel, $controllerGenerator)
    {
        if (!array_key_exists($class, $this->defaultBehaviorClasses)) {
            throw new SystemException('Unknown behavior class: '.$class);
        }

        switch ($class) {
            case 'Backend\Behaviors\FormController' : 
                return $this->getFormControllerDefaultConfiguration($controllerModel, $controllerGenerator);
            case 'Backend\Behaviors\ListController' : 
                return $this->getListControllerDefaultConfiguration($controllerModel, $controllerGenerator);
            case 'Backend\Behaviors\ReorderController' :
                return $this->getReorderControllerDefaultConfiguration($controllerModel, $controllerGenerator);
        }
    }
public function getDefaultConfiguration($class, $controllerModel, $controllerGenerator)
    {
        if (!array_key_exists($class, $this->defaultBehaviorClasses)) {
            throw new SystemException('Unknown behavior class: '.$class);
        }

        switch ($class) {
            case 'Backend\Behaviors\FormController' : 
                return $this->getFormControllerDefaultConfiguration($controllerModel, $controllerGenerator);
            case 'Backend\Behaviors\ListController' : 
                return $this->getListControllerDefaultConfiguration($controllerModel, $controllerGenerator);
            case 'Backend\Behaviors\ReorderController' :
                return $this->getReorderControllerDefaultConfiguration($controllerModel, $controllerGenerator);
        }
    }
public function getDefaultConfiguration ( $ class , $ controllerModel , $ controllerGenerator ) { if ( ! array_key_exists ( $ class , $ this -> defaultBehaviorClasses ) ) { throw new SystemException ( 'Unknown behavior class: ' . $ class ) ; } switch ( $ class ) { case 'Backend\Behaviors\FormController' : return $ this -> getFormControllerDefaultConfiguration ( $ controllerModel , $ controllerGenerator ) ; case 'Backend\Behaviors\ListController' : return $ this -> getListControllerDefaultConfiguration ( $ controllerModel , $ controllerGenerator ) ; case 'Backend\Behaviors\ReorderController' : return $ this -> getReorderControllerDefaultConfiguration ( $ controllerModel , $ controllerGenerator ) ; } }
Returns default behavior configuration as an array.
@param string $class Specifies the behavior class name.
@param string $controllerModel Controller model.
@param mixed $controllerGenerator Controller generator object.
@return array Returns the behavior configuration array.
Returns default behavior configuration as an array .