protected function OpenlayersControlEditForm::actions in Openlayers 8.4
Returns the actions provided by this form.
For the edit form, we only need to change the text of the submit button.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: An associative array containing the current state of the form.
Return value
array An array of supported actions for the current entity form.
Overrides OpenlayersControlFormBase::actions
File
- src/
Form/ OpenlayersControlEditForm.php, line 25
Class
- OpenlayersControlEditForm
- Class OpenlayersControlEditForm.
Namespace
Drupal\openlayers\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Update Control');
return $actions;
}