• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/buttons/buttonattributes.php
  • Класс: BitrixUIButtonsButtonAttributes
  • Вызов: ButtonAttributes::splitDataAttributesAndAnother
static function splitDataAttributesAndAnother(array $attributes)
{
	$anotherAttributes = $dataAttributes = [];
	foreach ($attributes as $name => $attribute)
	{
		$name = mb_strtolower($name);
		if (self::hasDataPrefix($name))
		{
			$dataAttributes[mb_substr($name, 5)] = $attribute;
		}
		else
		{
			$anotherAttributes[$name] = $attribute;
		}
	}

	return [$dataAttributes, $anotherAttributes];
}