• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/History/Action/AddCardAction.php
  • Класс: BitrixLandingHistoryActionAddCardAction
  • Вызов: AddCardAction::execute
public function execute(bool $undo = true): bool
{
	$block = new Block((int)$this->params['block']);
	$block->cloneCard($this->params['selector'], $this->params['position'] - 1, $this->params['content']);

	return $block->save();
}