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