Keevitaja\Linguist\Services\HtmlBuilder::parseAttributes PHP Method

parseAttributes() protected method

Parse anchor attributes
protected parseAttributes ( array $attributes ) : string
$attributes array
return string
    protected function parseAttributes(array $attributes)
    {
        $pairs = [];
        foreach ($attributes as $attribute => $value) {
            $pairs[] = is_int($attribute) ? $value : $attribute . '="' . $value . '"';
        }
        return implode(" ", $pairs);
    }