Nestable\Services\NestableService::ul PHP Метод

ul() публичный Метод

Generate open ul tag.
public ul ( string $items = false, $parent_id ) : string
$items string
Результат string
    public function ul($items = false, $parent_id = 0)
    {
        $attrs = '';
        if (is_array($this->optionUlAttr) && count($this->optionUlAttr) > 0) {
            $attrs = $this->renderAttr($this->optionUlAttr, $parent_id);
        }
        if (!$items) {
            return "\n" . '<ul' . $attrs . '>' . "\n";
        }
        return '<ul' . $attrs . '>' . "\n" . $items . "\n" . '</ul>';
    }