1 | <?php |
||
27 | class ElementList extends Plugin |
||
28 | { |
||
29 | use LoggerTrait; |
||
30 | |||
31 | /** |
||
32 | * This module's logger category |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected static $category = 'element-lists'; |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public function init() |
||
66 | |||
67 | |||
68 | /******************************************* |
||
69 | * TRANSLATE |
||
70 | *******************************************/ |
||
71 | |||
72 | /** |
||
73 | * Translates a message to the specified language. |
||
74 | * |
||
75 | * This is a shortcut method of [[\Craft::t()]]. |
||
76 | * * |
||
77 | * @param string $message the message to be translated. |
||
78 | * @param array $params the parameters that will be used to replace the corresponding placeholders in the message. |
||
79 | * @param string $language the language code (e.g. `en-US`, `en`). If this is null, the current |
||
80 | * [[\yii\base\Application::language|application language]] will be used. |
||
81 | * @return string the translated message. |
||
82 | */ |
||
83 | public static function t($message, $params = [], $language = null) |
||
87 | } |
||
88 |