Bootstrapper\MediaObject::renderList PHP Method

renderList() protected method

Renders a list
protected renderList ( ) : string
return string
    protected function renderList()
    {
        $attributes = new Attributes($this->attributes, ['class' => 'media-list']);
        $this->attributes = [];
        $string = "<ul {$attributes}>";
        foreach ($this->contents as $item) {
            $string .= $this->renderItem($item, 'li');
        }
        $string .= "</ul>";
        return $string;
    }