array
( 'class' =>
$css_classes . ' wp-block-navigation-item' .
( $has_submenu ? ' has-child' : ''
) .
( $is_active ? ' current-menu-item' : ''
),
'style' =>
$style_attribute,
) );
$html = '<li ' .
$wrapper_attributes . '>' .
'<a class="wp-block-navigation-item__content" ';
// Start appending HTML attributes to anchor tag.
if ( isset( $attributes['url'
] ) ) { $html .= ' href="' .
esc_url( block_core_navigation_link_maybe_urldecode( $attributes['url'
] ) ) . '"';
} if ( $is_active ) { $html .= ' aria-current="page"';
} if ( isset( $attributes['opensInNewTab'
] ) && true ===
$attributes['opensInNewTab'
] ) { $html .= ' target="_blank" ';
} if ( isset( $attributes['rel'
] ) ) {