src/Cms/Metatag/DocumentTrait.php
protected function parseDocumentTitleParts(array $parts)
    {
        $segments = [];
        foreach ($parts as $key => $value) {
            $value = $this->parseDocumentTitlePart($value, $key, $parts);
            if ($value === true) {
                $value = $parts[$key];
            }

            if (is_bool($value) || (empty($value) && !is_numeric($value))) {
                continue;
            }

            $segments[$key] = (string)$value;
        }

        return $segments;
    }
protected function parseDocumentTitleParts(array $parts)
    {
        $segments = [];
        foreach ($parts as $key => $value) {
            $value = $this->parseDocumentTitlePart($value, $key, $parts);
            if ($value === true) {
                $value = $parts[$key];
            }

            if (is_bool($value) || (empty($value) && !is_numeric($value))) {
                continue;
            }

            $segments[$key] = (string)$value;
        }

        return $segments;
    }
protected function parseDocumentTitleParts ( array $ parts ) { $ segments = [ ] ; foreach ( $ parts as $ key => $ value ) { $ value = $ this -> parseDocumentTitlePart ( $ value , $ key , $ parts ) ; if ( $ value === true ) { $ value = $ parts [ $ key ] ; } if ( is_bool ( $ value ) || ( empty ( $ value ) && ! is_numeric ( $ value ) ) ) { continue ; } $ segments [ $ key ] = ( string ) $ value ; } return $ segments ; }
Parse the document title segments.

Iterates over each value in $parts passing them to
{@see DocumentTrait::filterDocumentTitlePart}.
If the method returns TRUE, the current value from $parts
is concatenated into the title.

@param  array $parts The document title parts.
@return array The parsed and filtered segments.
Parse the document title segments .