1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Reason: The class is deprecated.
/** * Represents the class that contains the available extensions for Yoast SEO. * * @deprecated 15.4 * @codeCoverageIgnore */ class WPSEO_Extension_Manager {
/** * Adds an extension to the manager. * * @deprecated 15.4 * @codeCoverageIgnore * * @param string $extension_name The extension name. * @param WPSEO_Extension $extension The extension value object. * * @return void */ public function add( $extension_name, WPSEO_Extension $extension = null ) { _deprecated_function( __METHOD__, '15.4' ); }
/** * Removes an extension from the manager. * * @deprecated 15.4 * @codeCoverageIgnore * * @param string $extension_name The name of the extension to remove. * * @return void */ public function remove( $extension_name ) { _deprecated_function( __METHOD__, '15.4' ); }
/** * Returns the extension for the given extension name. * * @deprecated 15.4 * @codeCoverageIgnore * * @param string $extension_name The name of the extension to get. * * @return null|WPSEO_Extension The extension object or null when it doesn't exist. */ public function get( $extension_name ) { _deprecated_function( __METHOD__, '15.4' );
return null; }
/** * Returns all set extension. * * @deprecated 15.4 * @codeCoverageIgnore * * @return WPSEO_Extension[] Array with the extensions. */ public function get_all() { _deprecated_function( __METHOD__, '15.4' );
return []; }
/** * Checks if the plugin is activated within My Yoast. * * @deprecated 15.4 * @codeCoverageIgnore * * @param string $extension_name The extension name to check. * * @return bool True when the plugin is activated. */ public function is_activated( $extension_name ) { _deprecated_function( __METHOD__, '15.4' );
return false; } } // phpcs:enable
|