protected function _renderAttributes(array $attributes = [])
    {
        $attributeStrings = [];
        foreach ($attributes as $attribute => $value) {
            $attributeStrings[] = $attribute . '="' . htmlentities($value) . '"';
        }

        if (empty($attributeStrings)) {
            return '';
        }

        return ' ' . join(' ', $attributeStrings);
    }
protected function _renderAttributes(array $attributes = [])
    {
        $attributeStrings = [];
        foreach ($attributes as $attribute => $value) {
            $attributeStrings[] = $attribute . '="' . htmlentities($value) . '"';
        }

        if (empty($attributeStrings)) {
            return '';
        }

        return ' ' . join(' ', $attributeStrings);
    }
protected function _renderAttributes ( array $ attributes = [ ] ) { $ attributeStrings = [ ] ; foreach ( $ attributes as $ attribute => $ value ) { $ attributeStrings [ ] = $ attribute . '="' . htmlentities ( $ value ) . '"' ; } if ( empty ( $ attributeStrings ) ) { return '' ; } return ' ' . join ( ' ' , $ attributeStrings ) ; }
Render attribute key value pairs as html attributes.

@param array $attributes Key value pairs of html attributes.
@return string
Render attribute key value pairs as html attributes .