function BuildDemo::displayMethodInvocation
Same name in other branches
- 4.0.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 modules/
form_api_example/ src/ Form/ BuildDemo.php - Implements ajax submit callback.
- BuildDemo::getFormId in modules/
form_api_example/ src/ Form/ BuildDemo.php - Returns a unique string identifying the form.
- BuildDemo::rebuildFormSubmit in modules/
form_api_example/ src/ Form/ BuildDemo.php - Implements submit callback for Rebuild button.
- BuildDemo::submitForm in modules/
form_api_example/ src/ Form/ BuildDemo.php - Form submission handler.
- BuildDemo::validateForm in modules/
form_api_example/ src/ Form/ BuildDemo.php - Form validation handler.
File
-
modules/
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}");
}