You are here

public function AssetInjectorFormBase::actionsElement in Asset Injector 8

Same name and namespace in other branches
  1. 8.2 src/Form/AssetInjectorFormBase.php \Drupal\asset_injector\Form\AssetInjectorFormBase::actionsElement()

Returns the action form element for the current entity form.

Overrides EntityForm::actionsElement

File

src/Form/AssetInjectorFormBase.php, line 138

Class

AssetInjectorFormBase
Class CssInjectorForm.

Namespace

Drupal\asset_injector\Form

Code

public function actionsElement(array $form, FormStateInterface $form_state) {
  $element = parent::actionsElement($form, $form_state);
  $element['saveContinue'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Save and Continue Editing'),
    '#name' => 'save_continue',
    '#submit' => [
      '::submitForm',
      '::save',
    ],
    '#weight' => 7,
  ];
  return $element;
}