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
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.