public function UpgradeRectorTestErrorForm::buildForm in Upgrade Rector 8
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides FormInterface::buildForm
File
- tests/
modules/ upgrade_rector_test_error/ src/ Form/ UpgradeRectorTestErrorForm.php, line 14
Class
Namespace
Drupal\upgrade_rector_test\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$foo = LOCALE_PLURAL_DELIMITER;
drupal_set_message('Sample message');
$url = Drupal::url('<front');
}