public function FormHelper::createNormalButton in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Services/FormHelper.php \Drupal\filebrowser\Services\FormHelper::createNormalButton()
1 call to FormHelper::createNormalButton()
- FormHelper::createActionBar in src/
Services/ FormHelper.php
File
- src/
Services/ FormHelper.php, line 112
Class
- FormHelper
- Class FormHelper Service that provides utilities to forms
Namespace
Drupal\filebrowser\ServicesCode
public function createNormalButton($action) {
return [
'#type' => 'submit',
'#return_value' => $action['operation'],
'#value' => $action['title'],
'#name' => $action['operation'],
'#title' => $action['title'],
];
}