Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...
Enter a descriptive title (above) relating to class Submit, then describe the problem you have found:
$form['actions']['submit'] = array(
'#type' => 'submit,
'#value' => $this->t('Save'),
);
Should be:
$form['actions']['submit'] = array(
'#type' => 'submit',
'#value' => $this->t('Save'),
);
Comment | File | Size | Author |
---|---|---|---|
#4 | missing_apostrophe_in-2704911-4.patch | 441 bytes | malcomio |
Comments
Comment #2
thhafner CreditAttribution: thhafner commentedComment #3
thhafner CreditAttribution: thhafner commentedComment #4
malcomio CreditAttribution: malcomio commentedComment #6
jhodgdonDoh! Good catch, and thanks for the issue/patch (respectively).
Comment #7
alexpottDocs fixes are RC eligible so committed 039fb5d and pushed to 8.1.x and 8.2.x. Thanks!