1 | <?php |
||
40 | class HubSpot extends Plugin |
||
41 | { |
||
42 | use LoggerTrait; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | public static $category = 'hubspot'; |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | 9 | public function init() |
|
121 | |||
122 | /** |
||
123 | * @inheritdoc |
||
124 | */ |
||
125 | public function getCpNavItem() |
||
139 | |||
140 | /** |
||
141 | * @inheritdoc |
||
142 | * @return SettingsModel |
||
143 | */ |
||
144 | 6 | public function createSettingsModel() |
|
148 | |||
149 | /** |
||
150 | * @inheritdoc |
||
151 | * @throws \Twig_Error_Loader |
||
152 | * @throws \yii\base\Exception |
||
153 | */ |
||
154 | public function settingsHtml() |
||
160 | |||
161 | /******************************************* |
||
162 | * SERVICES |
||
163 | *******************************************/ |
||
164 | |||
165 | /** |
||
166 | * @noinspection PhpDocMissingThrowsInspection |
||
167 | * @return services\Cache |
||
168 | */ |
||
169 | public function getCache(): services\Cache |
||
175 | |||
176 | /** |
||
177 | * @noinspection PhpDocMissingThrowsInspection |
||
178 | * @return services\Connections |
||
179 | */ |
||
180 | 3 | public function getConnections(): services\Connections |
|
186 | |||
187 | /** |
||
188 | * @noinspection PhpDocMissingThrowsInspection |
||
189 | * @return Logger |
||
190 | */ |
||
191 | 9 | public function getPsrLogger(): Logger |
|
197 | |||
198 | |||
199 | /******************************************* |
||
200 | * TRANSLATE |
||
201 | *******************************************/ |
||
202 | |||
203 | /** |
||
204 | * Translates a message to the specified language. |
||
205 | * |
||
206 | * This is a shortcut method of [[\Craft::t()]]. |
||
207 | * * |
||
208 | * @param string $message the message to be translated. |
||
209 | * @param array $params the parameters that will be used to replace the corresponding placeholders in the message. |
||
210 | * @param string $language the language code (e.g. `en-US`, `en`). If this is null, the current |
||
211 | * [[\yii\base\Application::language|application language]] will be used. |
||
212 | * @return string the translated message. |
||
213 | */ |
||
214 | public static function t($message, $params = [], $language = null) |
||
218 | |||
219 | |||
220 | /******************************************* |
||
221 | * MODULES |
||
222 | *******************************************/ |
||
223 | |||
224 | /** |
||
225 | * @noinspection PhpDocMissingThrowsInspection |
||
226 | * @return cp\Cp |
||
227 | */ |
||
228 | public function getCp(): cp\Cp |
||
234 | |||
235 | |||
236 | /******************************************* |
||
237 | * EVENTS |
||
238 | *******************************************/ |
||
239 | |||
240 | /** |
||
241 | * @param RegisterUrlRulesEvent $event |
||
242 | */ |
||
243 | public static function onRegisterCpUrlRules(RegisterUrlRulesEvent $event) |
||
263 | } |
||
264 |
This method has been deprecated.