You are here

public function FormHelper::createNormalButton in Filebrowser 8.2

Same name and namespace in other branches
  1. 3.x 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\Services

Code

public function createNormalButton($action) {
  return [
    '#type' => 'submit',
    '#return_value' => $action['operation'],
    '#value' => $action['title'],
    '#name' => $action['operation'],
    '#title' => $action['title'],
  ];
}