Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
source.php
1<?php
2
4
8
15{
16 protected function init()
17 {
18 parent::init();
19 ErrorService::getInstance()->setThrowExceptionOnError(true);
20 }
21
22 protected function getDefaultPreFilters()
23 {
24 return [];
25 }
26
27 public function getPropsAction(): array
28 {
29 $sourceCode = '';
30 $sourceParams = [];
31
32 if($source = Service\SourceService::getInstance()->getSource())
33 {
34 $sourceCode = $source->getCode();
35 $sourceParams = $source->getJSParams();
36 }
37
38 return [
39 'sourceCode' => $sourceCode,
40 'sourceParams' => $sourceParams
41 ];
42 }
43}