Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
CheckChatAddParams.php
1<?php
2
4
10
12{
13 public function onBeforeAction(Event $event)
14 {
15 $arguments = $this->getAction()->getArguments();
16 if (!isset($arguments['fields']))
17 {
18 $this->addError(new Error(
19 'Parameter fields is required',
21 ));
22 return new EventResult(EventResult::ERROR, null, null, $this);
23 }
24
25 return null;
26 }
27}