You appear to be a bot. Output may be restricted
Description
Tests if the breadcrumb is broken.
A breadcrumb is considered broken when it has no URL or text.
Usage
$bool = Breadcrumb::is_broken( $breadcrumb );
Parameters
- $breadcrumb
- ( array ) required – The breadcrumb to test.
Returns
bool true
if the breadcrumb is broken.
Source
File name: wordpress-seo/src/generators/schema/breadcrumb.php
Lines:
1 to 3 of 3
private function is_broken( $breadcrumb ) { return ! \array_key_exists( 'url', $breadcrumb ) || ! \array_key_exists( 'text', $breadcrumb ); }