AdamWathan\Form\Elements\Element::renderAttributes PHP Method

renderAttributes() protected method

protected renderAttributes ( )
    protected function renderAttributes()
    {
        list($attributes, $values) = $this->splitKeysAndValues($this->attributes);
        return implode(array_map(function ($attribute, $value) {
            return sprintf(' %s="%s"', $attribute, $value);
        }, $attributes, $values));
    }