src/Zicht/Bundle/UrlBundle/Form/DataTransformer/TextTransformer.php
protected function doMap($text, $mode)
    {
        $map = $this->aliasing->getAliasingMap([$text], $mode);

        if (count($map) === 1) {
            return current($map);
        }
        
        return $text;
    }
protected function doMap($text, $mode)
    {
        $map = $this->aliasing->getAliasingMap([$text], $mode);

        if (count($map) === 1) {
            return current($map);
        }
        
        return $text;
    }
protected function doMap ( $ text , $ mode ) { $ map = $ this -> aliasing -> getAliasingMap ( [ $ text ] , $ mode ) ; if ( count ( $ map ) === 1 ) { return current ( $ map ) ; } return $ text ; }
Delegates the text mapping to the aliasing service.

@param string $text
@param string $mode
@return mixed|null
Delegates the text mapping to the aliasing service .