PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.2.5
Pods – Custom Content Types and Fields v3.2.5
trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / src / Pods / REST / Interfaces / Messages_Interface.php
pods / src / Pods / REST / Interfaces Last commit date
Endpoints 3 years ago Swagger 3 years ago Messages_Interface.php 3 years ago Post_Repository_Interface.php 3 years ago Validator_Interface.php 3 years ago
Messages_Interface.php
44 lines
1 <?php
2
3 namespace Pods\REST\Interfaces;
4
5 /**
6 * Messages interface.
7 *
8 * @credit The Events Calendar team - https://github.com/the-events-calendar/tribe-common
9 *
10 * @since 3.0
11 */
12 interface Messages_Interface {
13 /**
14 * Returns the localized message associated with the slug.
15 *
16 * @since 3.0
17 *
18 * @param string $message_slug
19 *
20 * @return string
21 */
22 public function get_message( $message_slug );
23
24 /**
25 * Returns the associative array of all the messages handled by the class.
26 *
27 * @since 3.0
28 *
29 * @return array An associative array in the `[ <slug> => <localized message> ]` format.
30 */
31 public function get_messages();
32
33 /**
34 * Prefixes a message slug with a common root.
35 *
36 * @since 3.0
37 *
38 * @param string $message_slug
39 *
40 * @return string The prefixed message slug.
41 */
42 public function prefix_message_slug( $message_slug );
43 }
44