src/Zicht/Bundle/UrlBundle/Form/DataTransformer/AbstractAliasingTransformer.php
public function transform($data)
    {
        if (self::MODE_TO_PUBLIC === (self::MODE_TO_PUBLIC & $this->mode)) {
            return $this->map($data, UrlMapperInterface::MODE_INTERNAL_TO_PUBLIC);
        } else {
            return $data;
        }
    }
public function transform($data)
    {
        if (self::MODE_TO_PUBLIC === (self::MODE_TO_PUBLIC & $this->mode)) {
            return $this->map($data, UrlMapperInterface::MODE_INTERNAL_TO_PUBLIC);
        } else {
            return $data;
        }
    }
public function transform ( $ data ) { if ( self :: MODE_TO_PUBLIC === ( self :: MODE_TO_PUBLIC & $ this -> mode ) ) { return $ this -> map ( $ data , UrlMapperInterface :: MODE_INTERNAL_TO_PUBLIC ) ; } else { return $ data ; } }
Transforms a string containing internal urls to string to public urls.

@param string $data
@return null|string
Transforms a string containing internal urls to string to public urls .