protected function GathercontentMappingEditForm::actions in GatherContent 8
@inheritdoc
Overrides EntityForm::actions
File
- src/
Form/ GathercontentMappingEditForm.php, line 404
Class
- GathercontentMappingEditForm
- Class GathercontentMappingEditForm.
Namespace
Drupal\gathercontent\FormCode
protected function actions(array $form, FormStateInterface $form_state) {
$actions = parent::actions($form, $form_state);
$actions['submit']['#value'] = $this->entity
->hasMapping() ? $this
->t('Update mapping') : $this
->t('Create mapping');
$actions['close'] = array(
'#type' => 'submit',
'#value' => t('Cancel'),
);
unset($actions['delete']);
return $actions;
}