• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/History/Action/RemoveBlockAction.php
  • Класс: BitrixLandingHistoryActionRemoveBlockAction
  • Вызов: RemoveBlockAction::execute
public function execute(bool $undo = true): bool
{
	$landing = Landing::createInstance($this->params['lid']);
	if (
		$landing->exist()
		&& $landing->markDeletedBlock((int)$this->params['block'], true)
	)
	{
		$landing->resortBlocks();

		return true;
	}

	return false;
}