function NodeTypeForm::actions

Same name and namespace in other branches
  1. 9 core/modules/node/src/NodeTypeForm.php \Drupal\node\NodeTypeForm::actions()

Overrides EntityForm::actions

File

core/modules/node/src/NodeTypeForm.php, line 203

Class

NodeTypeForm
Form handler for node type forms.

Namespace

Drupal\node

Code

protected function actions(array $form, FormStateInterface $form_state) {
    $actions = parent::actions($form, $form_state);
    $actions['submit']['#value'] = t('Save content type');
    return $actions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.