PluginProbe
Polylang / 3.8.9
Polylang v3.8.9
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / Model / Languages_Proxy_Interface.php

Languages_Proxy_Interface.php in Polylang 3.8.9, at src/Model/Languages_Proxy_Interface.php

39 lines 656 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package Polylang
4 */
5
6 namespace WP_Syntex\Polylang\Model;
7
8 use PLL_Language;
9
10 defined( 'ABSPATH' ) || exit;
11
12 /**
13 * Interface allowing to proxy the list of languages.
14 *
15 * @since 3.8
16 */
17 interface Languages_Proxy_Interface {
18 /**
19 * Returns the proxy's key.
20 *
21 * @since 3.8
22 *
23 * @return string
24 *
25 * @phpstan-return non-falsy-string
26 */
27 public function key(): string;
28
29 /**
30 * Returns the list of available languages after passing it through this proxy.
31 *
32 * @since 3.8
33 *
34 * @param PLL_Language[] $languages List of languages to filter.
35 * @return PLL_Language[]
36 */
37 public function filter( array $languages ): array;
38 }
39