public function SubFormState::prepareCallback in Authorization 8
Converts support notations for a form callback to a valid callable.
Specifically, supports methods on the form/callback object as strings when they start with ::, for example "::submitForm()".
Parameters
string|array $callback: The callback.
Return value
array|string A valid callable.
Overrides FormStateInterface::prepareCallback
File
- src/
Form/ SubFormState.php, line 425
Class
- SubFormState
- Represents the form state of a sub-form.
Namespace
Drupal\authorization\FormCode
public function prepareCallback($callback) {
return $this->mainFormState
->prepareCallback($callback);
}