• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/block.php
  • Класс: BitrixLandingBlock
  • Вызов: Block::getBlockPath
static function getBlockPath($code, $namespace = null)
{
	if (!is_string($code))
	{
		return '';
	}

	if (strpos($code, '@'))
	{
		[$code, ] = explode('@', $code);
	}

	if (!$namespace)
	{
		$namespace = self::getBlockNamespace($code);
	}
	if ($namespace)
	{
		return getLocalPath(
			self::BLOCKS_DIR . '/' . $namespace . '/' . $code
		);
	}

	return '';
}