You appear to be a bot. Output may be restricted
Description
Returns a breadcrumb array.
Usage
$array = Breadcrumb::create_breadcrumb( $index, $breadcrumb );
Parameters
- $index
- ( int ) required – The position in the list.
- $breadcrumb
- ( array ) required – The position in the list.
Returns
array A breadcrumb listItem.
Source
File name: wordpress-seo/src/generators/schema/breadcrumb.php
Lines:
1 to 12 of 12
private function create_breadcrumb( $index, $breadcrumb ) { return [ '@type' => 'ListItem', 'position' => ( $index + 1 ), 'item' => [ '@type' => 'WebPage', '@id' => $breadcrumb['url'], 'url' => $breadcrumb['url'], // For future proofing, we're trying to change the standard for this. 'name' => $this->helpers->schema->html->smart_strip_tags( $breadcrumb['text'] ), ], ]; }