protected function YamlFormEntityAccessForm::actionsElement in YAML Form 8
Returns the action form element for the current entity form.
Overrides EntityForm::actionsElement
File
- src/
YamlFormEntityAccessForm.php, line 57
Class
- YamlFormEntityAccessForm
- Provides a form to manage access.
Namespace
Drupal\yamlformCode
protected function actionsElement(array $form, FormStateInterface $form_state) {
$element = parent::actionsElement($form, $form_state);
// Don't display delete button.
unset($element['delete']);
return $element;
}