22 public static function getClassName(
string $type): string
24 $type = mb_strtolower($type);
26 if ($type ===
'' || $type ===
'type')
28 throw new \Bitrix\Main\ArgumentTypeException(
33 if (isset(self::$classes[$type]))
35 return self::$classes[$type];
38 $class = __NAMESPACE__ .
'\\' . $type;
41 $event = new \Bitrix\Main\Event(
50 foreach ($event->getResults() as $result)
52 if ($result->getType() != \
Bitrix\Main\EventResult::ERROR)
55 ($modified = $result->getModified()) &&
56 isset($modified[
'class']) &&
57 is_subclass_of($modified[
'class'],
'\\Bitrix\\Landing\\Node')
60 $class = $modified[
'class'];
65 self::$classes[$type] = $class;
67 return self::$classes[$type];