protected ContentEntityConfirmFormBase::actions(array $form, FormStateInterface $form_state)
Returns an array of supported actions for the current entity form.
@todo Consider introducing a 'preview' action here, since it is used by many entity types.
Overrides EntityForm::actions
protected function actions(array $form, FormStateInterface $form_state) { return array( 'submit' => array( '#type' => 'submit', '#value' => $this->getConfirmText(), '#submit' => array( array($this, 'submitForm'), ), ), 'cancel' => ConfirmFormHelper::buildCancelLink($this, $this->getRequest()), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityConfirmFormBase.php/function/ContentEntityConfirmFormBase::actions/8.1.x