PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 27.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v27.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / src / editors / application / integrations / integration-information-repository.php

integration-information-repository.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 27.5, at src/editors/application/integrations/integration-information-repository.php

44 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong
4 namespace Yoast\WP\SEO\Editors\Application\Integrations;
5
6 use Yoast\WP\SEO\Editors\Domain\Integrations\Integration_Data_Provider_Interface;
7
8 /**
9 * The repository to get all enabled integrations.
10 *
11 * @makePublic
12 */
13 class Integration_Information_Repository {
14
15 /**
16 * All plugin integrations.
17 *
18 * @var Integration_Data_Provider_Interface[]
19 */
20 private $plugin_integrations;
21
22 /**
23 * The constructor.
24 *
25 * @param Integration_Data_Provider_Interface ...$plugin_integrations All integrations.
26 */
27 public function __construct( Integration_Data_Provider_Interface ...$plugin_integrations ) {
28 $this->plugin_integrations = $plugin_integrations;
29 }
30
31 /**
32 * Returns the analysis list.
33 *
34 * @return array<array<string, bool>> The parsed list.
35 */
36 public function get_integration_information(): array {
37 $array = [];
38 foreach ( $this->plugin_integrations as $feature ) {
39 $array = \array_merge( $array, $feature->to_legacy_array() );
40 }
41 return $array;
42 }
43 }
44