function BuildDemo::displayMethodInvocation

Same name in other branches
  1. 3.x modules/form_api_example/src/Form/BuildDemo.php \Drupal\form_api_example\Form\BuildDemo::displayMethodInvocation()
  2. 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 form_api_example/src/Form/BuildDemo.php
Implements ajax submit callback.
BuildDemo::getFormId in form_api_example/src/Form/BuildDemo.php
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
BuildDemo::validateForm in form_api_example/src/Form/BuildDemo.php

... See full list

File

form_api_example/src/Form/BuildDemo.php, line 42

Class

BuildDemo
Implements the build demo form controller.

Namespace

Drupal\form_api_example\Form

Code

private function displayMethodInvocation($method_name) {
    self::$sequenceCounter++;
    $this->messenger()
        ->addMessage(self::$sequenceCounter . ". {$method_name}");
}