Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
genericconverter.php
1<?php
2
4
13{
15 private const LEVEL_1_ADMIN_LEVEL = 4;
16
20 protected function getAdminLevel1(): ?array
21 {
22 foreach ($this->addressComponents as $addressComponent)
23 {
24 if ($this->isAdministrativeBoundary($addressComponent)
25 && $addressComponent['admin_level'] === static::LEVEL_1_ADMIN_LEVEL
26 )
27 {
28 return $addressComponent;
29 }
30 }
31
32 return null;
33 }
34}