public function SubFormState::setButtons in Authorization 8
Stores the submit and button elements for the form.
Parameters
array $buttons: The submit and button elements.
Return value
$this
Overrides FormStateInterface::setButtons
File
- src/
Form/ SubFormState.php, line 462
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function setButtons(array $buttons) {
$this->mainFormState
->setButtons($buttons);
return $this;
}