Noherczeg\Breadcrumb\Builders\FoundationBuilder::build PHP Метод

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

WARNING! Foundation won't accept any separator, or properties submitted to it, since it's not in the model by default! Parameter is only there as placeholder!
public build ( String | null $casing = null, boolean $last_not_link = true, null $separator = null, null $properties = null, boolean $different_links = false ) : String
$casing String | null Casing option
$last_not_link boolean True if last shouldn't be a link
$separator null
$properties null
$different_links boolean
Результат String
    public function build($casing = null, $last_not_link = true, $separator = null, $properties = null, $different_links = false)
    {
        // always create link on build stage!
        $this->link($last_not_link, $different_links);
        // handle default
        $this->casing = is_null($casing) ? $this->config->value('casing') : $casing;
        $result = '<ul class="breadcrumbs">';
        foreach ($this->segments as $segment) {
            $result .= $this->appendElement($segment);
        }
        return $result . '</ul>';
    }