• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/History/Action/UpdateContentAction.php
  • Класс: BitrixLandingHistoryActionUpdateContentAction
  • Вызов: UpdateContentAction::execute
public function execute(bool $undo = true): bool
{
	$block = new Block((int)$this->params['block']);
	if ($block->exist())
	{
		$content = $undo ? $this->params['contentBefore'] : $this->params['contentAfter'];
		$block->saveContent($content, $this->params['designed']);

		return $block->save();
	}

	return false;
}