protected SetCustomize::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/modules/shortcut/src/Form/SetCustomize.php, line 86
Class
- SetCustomize
- Builds the shortcut set customize form.
Namespace
Drupal\shortcut\Form
Code
1 2 3 4 5 6 7 8 9 10 11 | protected function actions( array $form , FormStateInterface $form_state ) { // Only includes a Save action for the entity, no direct Delete button. return array ( 'submit' => array ( '#type' => 'submit' , '#value' => t( 'Save' ), '#access' => (bool) Element::getVisibleChildren( $form [ 'shortcuts' ][ 'links' ]), '#submit' => array ( '::submitForm' , '::save' ), ), ); } |
Please login to continue.