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
File
- core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php, line 79
Class
- ContentEntityConfirmFormBase
- Provides a generic base class for an entity-based confirmation form.
Namespace
Drupal\Core\Entity
Code
1 2 3 4 5 6 7 8 9 10 11 12 | 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()), ); } |
Please login to continue.