src/Configuration/ActionConfiguration.php
private function getLoadStrategyNormalizer()
    {
        return function(Options $options, $value) {
            if (!$value) {
                if ('create' == $this->actionName) {
                    $value = LAGAdminBundle::LOAD_STRATEGY_NONE;
                } elseif ('list' == $this->actionName) {
                    $value = LAGAdminBundle::LOAD_STRATEGY_MULTIPLE;
                } else {
                    $value = LAGAdminBundle::LOAD_STRATEGY_UNIQUE;
                }
            }

            return $value;
        };
    }
private function getLoadStrategyNormalizer()
    {
        return function(Options $options, $value) {
            if (!$value) {
                if ('create' == $this->actionName) {
                    $value = LAGAdminBundle::LOAD_STRATEGY_NONE;
                } elseif ('list' == $this->actionName) {
                    $value = LAGAdminBundle::LOAD_STRATEGY_MULTIPLE;
                } else {
                    $value = LAGAdminBundle::LOAD_STRATEGY_UNIQUE;
                }
            }

            return $value;
        };
    }
private function getLoadStrategyNormalizer ( ) { return function ( Options $ options , $ value ) { if ( ! $ value ) { if ( 'create' == $ this -> actionName ) { $ value = LAGAdminBundle :: LOAD_STRATEGY_NONE ; } elseif ( 'list' == $ this -> actionName ) { $ value = LAGAdminBundle :: LOAD_STRATEGY_MULTIPLE ; } else { $ value = LAGAdminBundle :: LOAD_STRATEGY_UNIQUE ; } } return $ value ; } ; }
Return the load strategy normalizer. It will set the default strategy according to the action name, if no value
is provided.

@return Closure
Return the load strategy normalizer . It will set the default strategy according to the action name if no value is provided .