src/Twig/Extension/SonataAdminExtension.php
public function getUrlsafeIdentifier($model, AdminInterface $admin = null)
    {
        if (null === $admin) {
            $admin = $this->pool->getAdminByClass(ClassUtils::getClass($model));
        }

        return $admin->getUrlsafeIdentifier($model);
    }
public function getUrlsafeIdentifier($model, AdminInterface $admin = null)
    {
        if (null === $admin) {
            $admin = $this->pool->getAdminByClass(ClassUtils::getClass($model));
        }

        return $admin->getUrlsafeIdentifier($model);
    }
public function getUrlsafeIdentifier ( $ model , AdminInterface $ admin = null ) { if ( null === $ admin ) { $ admin = $ this -> pool -> getAdminByClass ( ClassUtils :: getClass ( $ model ) ) ; } return $ admin -> getUrlsafeIdentifier ( $ model ) ; }
Get the identifiers as a string that is safe to use in a url.

@param object $model

@return string string representation of the id that is safe to use in a url
Get the identifiers as a string that is safe to use in a url .