src/Sulu/Bundle/MarkupBundle/Markup/LinkTag.php
private function getValue(array $attributes, $name, $default = null)
    {
        if (array_key_exists($name, $attributes) && !empty($attributes[$name])) {
            return $attributes[$name];
        }

        return $default;
    }
private function getValue(array $attributes, $name, $default = null)
    {
        if (array_key_exists($name, $attributes) && !empty($attributes[$name])) {
            return $attributes[$name];
        }

        return $default;
    }
private function getValue ( array $ attributes , $ name , $ default = null ) { if ( array_key_exists ( $ name , $ attributes ) && ! empty ( $ attributes [ $ name ] ) ) { return $ attributes [ $ name ] ; } return $ default ; }
Returns attribute identified by name or default if not exists.

@param array $attributes
@param string $name
@param mixed $default

@return mixed
Returns attribute identified by name or default if not exists .