public function RuleListBuilder::buildForm in JS injector 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides DraggableListBuilder::buildForm
File
- lib/
Drupal/ js_injector/ RuleListBuilder.php, line 68 - Contains \Drupal\js_injector\RuleListBuilder.
Class
- RuleListBuilder
- Defines a class to build a listing of js_injector_rule entities.
Namespace
Drupal\js_injectorCode
public function buildForm(array $form, array &$form_state) {
$form = parent::buildForm($form, $form_state);
$form['actions']['submit']['#value'] = t('Save changes');
return $form;
}