class OpenlayersMapEditForm in Openlayers 8.4
Class OpenlayersMapEditForm.
Hierarchy
- class \Drupal\openlayers\Form\OpenlayersMapEditForm extends \Drupal\openlayers\Form\OpenlayersMapFormBase
Expanded class hierarchy of OpenlayersMapEditForm
File
- src/
Form/ OpenlayersMapEditForm.php, line 10
Namespace
Drupal\openlayers\FormView source
class OpenlayersMapEditForm extends OpenlayersMapFormBase {
/**
* Returns the actions provided by this form.
*
* For the edit form, we only need to change the text of the submit button.
*
* @param array $form
* An associative array containing the structure of the form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* An associative array containing the current state of the form.
*
* @return array
* An array of supported actions for the current entity form.
*/
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this
->t('Save Map');
return $actions;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
OpenlayersMapEditForm:: |
protected | function | Returns the actions provided by this form. |