Sulu\Bundle\ContentBundle\Markup\LinkTag::getValue PHP Метод

getValue() приватный Метод

Returns attribute identified by name or default if not exists.
private getValue ( array $attributes, string $name, mixed $default = null ) : mixed
$attributes array
$name string
$default mixed
Результат mixed
    private function getValue(array $attributes, $name, $default = null)
    {
        if (array_key_exists($name, $attributes) && !empty($attributes[$name])) {
            return $attributes[$name];
        }
        return $default;
    }