$form['id'] = [
'#type' => 'machine_name',
'#default_value' =&...

Contribution Date
Technology
Contribution Project
Contribution Details
$form['id'] = [ '#type' => 'machine_name', '#default_value' => $entity->id(), '#maxlength' => 32, '#machine_name' => [ 'exists' => '\Drupal\build_hooks\Entity\FrontendEnvironment::load', ], '#disabled' => !$entity->isNew(), ];

Is test needed for the above changes?

$longMachineName = mb_strtolower($this->randomMachineName(34)); $this->submitForm([ 'id' => $longMachineName, 'label' => $longMachineName, 'url' => 'http://example.com/' . $longMachineName, 'deployment_strategy' => TriggerInterface::DEPLOYMENT_STRATEGY_MANUAL, 'settings[whiz]' => $longMachineName, ], 'Save'); $assert = $this->assertSession(); $assert->statusCodeEquals(500);

For test I have done this.

Contribution Author
Files count
0
Patches count
0