private function BuildDemo::displayMethodInvocation in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/form_api_example/src/Form/BuildDemo.php \Drupal\form_api_example\Form\BuildDemo::displayMethodInvocation()
Update form processing information.
Display the method being called and it's sequence in the form processing.
Parameters
string $method_name: The method being invoked.
6 calls to BuildDemo::displayMethodInvocation()
- BuildDemo::ajaxSubmit in form_api_example/
src/ Form/ BuildDemo.php - Implements ajax submit callback.
- BuildDemo::getFormId in form_api_example/
src/ Form/ BuildDemo.php - Returns a unique string identifying the form.
- BuildDemo::rebuildFormSubmit in form_api_example/
src/ Form/ BuildDemo.php - Implements submit callback for Rebuild button.
- BuildDemo::submitForm in form_api_example/
src/ Form/ BuildDemo.php - Form submission handler.
- BuildDemo::validateForm in form_api_example/
src/ Form/ BuildDemo.php - Form validation handler.
File
- form_api_example/
src/ Form/ BuildDemo.php, line 42
Class
- BuildDemo
- Implements the build demo form controller.
Namespace
Drupal\form_api_example\FormCode
private function displayMethodInvocation($method_name) {
self::$sequenceCounter++;
$this
->messenger()
->addMessage(self::$sequenceCounter . ". {$method_name}");
}