function FormTestMachineNameForm::load

Same name in other branches
  1. 11.x core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php \Drupal\form_test\Form\FormTestMachineNameForm::load()

Loading stub for machine name.

Parameters

$machine_name: The machine name.

Return value

bool

File

core/modules/system/tests/modules/form_test/src/Form/FormTestMachineNameForm.php, line 89

Class

FormTestMachineNameForm
Form constructor for testing #type 'machine_name' elements.

Namespace

Drupal\form_test\Form

Code

public function load($machine_name) {
    return str_contains($machine_name, 'duplicate');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.