Метод localize

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 236–288
~/bitrix/modulesim/lib/V2/Entity/Command/ChatCommandList.php

Исходный код

PHP
private

Сигнатура метода

private function localize(array $rows, string $lang): array

Возвращает: array

Описание

Localizes command rows in place, preserving order. REST-style commands take their title/params from CommandLangTable (one batch read). Module commands (MODULE_ID != 'rest') expose localization through a METHOD_LANG_GET callback and have no table rows - they are localized per row, mirroring Bitrix\Im\Command::getListCache. A falsy callback result hides the command (its row is dropped), the same way getListCache marks it HIDDEN.

Параметры

2
Имя Тип По умолчанию Флаги
$rows array -
-
$lang string -
-