• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/buttons/basebutton.php
  • Класс: BitrixUIButtonsBaseButton
  • Вызов: BaseButton::addAttribute
public function addAttribute($name, $value = null)
{
	if (mb_strtolower($name) === 'class')
	{
		throw new ArgumentException('Could not add "class" attribute. You should use ::addClass()', 'class');
	}

	$this->getAttributeCollection()[$name] = $value;

	return $this;
}