• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/businesssuite/configuration/facebook/setup.php
  • Класс: BitrixSeoBusinessSuiteConfigurationFacebookSetup
  • Вызов: Setup::toArray
public function toArray(): array
{
	return array_reduce(
		array_keys(self::FIELDS_MAP),
		(function (array $result,string $code) : array
		{
			$field = $this::getField($code);
			if($field::available())
			{
				if($value = $this->get($code))
				{
					$result[$code] = $value;
				}
				elseif($field::required())
				{
					throw new BusinessSuiteExceptionRequiredFieldNotFoundException("$code");
				}
			}
			return $result;

		})->bindTo($this,$this),
		array()
	);
}