📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: LiteSpeed
2026-06-28 14:53:15
📂
/ (Root)
/
home
/
apkbfjox
/
epiwinn.com.pk
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
schema-aggregator
/
application
📍 /home/apkbfjox/epiwinn.com.pk/wp-content/plugins/wordpress-seo/src/schema-aggregator/application
🔄 Refresh
✏️
Editing: schema-aggregator-response-composer.php
Writable
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. namespace Yoast\WP\SEO\Schema_Aggregator\Application; use Yoast\WP\SEO\Schema_Aggregator\Domain\Schema_Piece_Collection; /** * Class Schema_Aggregator_Response_Composer * * Composes the final schema response. */ class Schema_Aggregator_Response_Composer { /** * Composes the final schema response. * * @param Schema_Piece_Collection $schema_pieces The schema pieces to include in the response. * * @return array<string> The composed schema response. */ public function compose( Schema_Piece_Collection $schema_pieces ): array { $composed_pieces = []; foreach ( $schema_pieces->to_array() as $piece ) { $composed_pieces[] = \array_merge( [ '@context' => 'https://schema.org', ], $piece->get_data(), ); } return $composed_pieces; } }
💾 Save Changes
❌ Cancel