You are here

protected function YamlFormEntityThirdPartySettingsForm::actionsElement in YAML Form 8

Returns the action form element for the current entity form.

Overrides EntityForm::actionsElement

File

src/YamlFormEntityThirdPartySettingsForm.php, line 52

Class

YamlFormEntityThirdPartySettingsForm
Provides a form to configure third party settings.

Namespace

Drupal\yamlform

Code

protected function actionsElement(array $form, FormStateInterface $form_state) {
  $element = parent::actionsElement($form, $form_state);

  // Don't display the delete button.
  unset($element['delete']);
  return $element;
}