Noherczeg\Breadcrumb\Builders\Builder::properties PHP Метод

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

properties: Transforms an array of properties to a chain of html property key + value pairs.
public properties ( array $properties = [] ) : string
$properties array Array of properties
Результат string Chained properties
    public function properties(array $properties = array())
    {
        $res = '';
        if (!empty($properties)) {
            foreach ($properties as $key => $property) {
                $res .= ' ' . $key . '="' . $property . '"';
            }
        }
        return $res;
    }