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 |