public static function UseMicroData($links, $home = 2)
    {
        if (empty($links)) {
            return [];
        }

        foreach ($links as $key => &$link) {
            if(is_array($link)) {
                $link['template'] = self::getTemplate($link['label'], $link['url'], $key+$home);
            }
        }

        return $links;
    }
public static function UseMicroData($links, $home = 2)
    {
        if (empty($links)) {
            return [];
        }

        foreach ($links as $key => &$link) {
            if(is_array($link)) {
                $link['template'] = self::getTemplate($link['label'], $link['url'], $key+$home);
            }
        }

        return $links;
    }
public static function UseMicroData ( $ links , $ home = 2 ) { if ( empty ( $ links ) ) { return [ ] ; } foreach ( $ links as $ key => & $ link ) { if ( is_array ( $ link ) ) { $ link [ 'template' ] = self :: getTemplate ( $ link [ 'label' ] , $ link [ 'url' ] , $ key + $ home ) ; } } return $ links ; }
Returns an array of breadcrumbs microdata

@param array $links list breadcrumbs links (yii\widgets\Breadcrumbs Public property links)
@param int $home start breadcrumbs links (if isset home, $home=2. If not isset home, $home=1)
@return array breadcrumbs links
Returns an array of breadcrumbs microdata