protected function setItemListElementAttribute($items)
    {
        foreach($items as $pos=>$item) {
            $items[$pos] = $this->getNestedContext(ListItem::class, [
                'position' => $pos + 1,
                'item' => $item
            ]);
        }

        return $items;
    }
protected function setItemListElementAttribute($items)
    {
        foreach($items as $pos=>$item) {
            $items[$pos] = $this->getNestedContext(ListItem::class, [
                'position' => $pos + 1,
                'item' => $item
            ]);
        }

        return $items;
    }
protected function setItemListElementAttribute ( $ items ) { foreach ( $ items as $ pos => $ item ) { $ items [ $ pos ] = $ this -> getNestedContext ( ListItem :: class , [ 'position' => $ pos + 1 , 'item' => $ item ] ) ; } return $ items ; }
Set the canonical URL of the article page.

@param  array $items
@return array
Set the canonical URL of the article page .