• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/embed/config.php
  • Класс: Bitrix\Crm\WebForm\Embed\Config
  • Вызов: Config::getDesign
public function getDesign()
{
	$design = $this->form->getDesignOptions(true);
	if (!$this->editMode)
	{
		unset($design['theme']);
	}

	foreach ($design as $key => $value)
	{
		if (is_array($value))
		{
			$value = array_filter(
				$value,
				function ($v)
				{
					return is_bool($v) ? true : mb_strlen($v) > 0;
				}
			);
			if (count($value) > 0)
			{
				continue;
			}
		}
		else
		{
			if (mb_strlen($value) > 0)
			{
				continue;
			}
		}

		unset($design[$key]);
	}

	return $design;
}