I copied it over the parent class fn & apart from minor comment block differences it matches
}
/**
- * Simple shell that derived classes can call to add buttons to
- * the form with a customized title for the main Submit
+ * Add buttons to the form.
*
* @param string $title
* Title of the main button.
);
}
- /**
- * Simple shell that derived classes can call to add buttons to.
- * the form with a customized title for the main Submit
- *
- * @param string $title
- * Title of the main button.
- * @param string $nextType
- * @param string $backType
- * @param bool $submitOnce
- *
- * @return void
- */
- public function addDefaultButtons($title, $nextType = 'next', $backType = 'back', $submitOnce = FALSE) {
- $this->addButtons([
- [
- 'type' => $nextType,
- 'name' => $title,
- 'isDefault' => TRUE,
- ],
- [
- 'type' => $backType,
- 'name' => ts('Cancel'),
- ],
- ]);
- }
-
}