: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Yoast\WP\SEO\Generators\Schema;
use Yoast\WP\SEO\Context\Meta_Tags_Context;
use Yoast\WP\SEO\Surfaces\Helpers_Surface;
* Class Abstract_Schema_Piece.
abstract class Abstract_Schema_Piece {
* Optional identifier for this schema piece.
* Used in the `Schema_Generator::filter_graph_pieces_to_generate()` method.
* Generates the schema piece.
abstract public function generate();
* Determines whether the schema piece is needed.
abstract public function is_needed();