• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/handler/base.php
  • Класс: BitrixReportVisualConstructorHandlerBase
  • Вызов: Base::getFormElementByDataAttribute
public function getFormElementByDataAttribute($attributeKey, $value)
{
	$reportHandlerFormElements = $this->getFormElements();
	if ($reportHandlerFormElements)
	{
		foreach ($reportHandlerFormElements as $element)
		{
			if ($element->getDataAttribute($attributeKey) === $value)
			{
				return $element;
			}
		}
	}
	return null;
}