src/Kunstmaan/AdminListBundle/AdminList/Configurator/AbstractAdminListConfigurator.php
public function getAddUrlFor(array $params = array())
    {
        $params = array_merge($params, $this->getExtraParameters());

        $friendlyName = explode('\\', $this->getEntityName());
        $friendlyName = array_pop($friendlyName);
        $re = '/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/';
        $a = preg_split($re, $friendlyName);
        $superFriendlyName = implode(' ', $a);

        return array(
            $superFriendlyName => array(
                'path' => $this->getPathByConvention($this::SUFFIX_ADD),
                'params' => $params,
            ),
        );
    }
public function getAddUrlFor(array $params = array())
    {
        $params = array_merge($params, $this->getExtraParameters());

        $friendlyName = explode('\\', $this->getEntityName());
        $friendlyName = array_pop($friendlyName);
        $re = '/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/';
        $a = preg_split($re, $friendlyName);
        $superFriendlyName = implode(' ', $a);

        return array(
            $superFriendlyName => array(
                'path' => $this->getPathByConvention($this::SUFFIX_ADD),
                'params' => $params,
            ),
        );
    }
public function getAddUrlFor ( array $ params = array ( ) ) { $ params = array_merge ( $ params , $ this -> getExtraParameters ( ) ) ; $ friendlyName = explode ( '\\' , $ this -> getEntityName ( ) ) ; $ friendlyName = array_pop ( $ friendlyName ) ; $ re = '/(?<=[a-z])(?=[A-Z])|(?<=[A-Z])(?=[A-Z][a-z])/' ; $ a = preg_split ( $ re , $ friendlyName ) ; $ superFriendlyName = implode ( ' ' , $ a ) ; return array ( $ superFriendlyName => array ( 'path' => $ this -> getPathByConvention ( $ this :: SUFFIX_ADD ) , 'params' => $ params , ) , ) ; }
Configure the types of items you can add

@param array $params

@return array
Configure the types of items you can add