Issue #2494131 by webchick, mgifford, mohit_aghera, LewisNyman, yoroy: Placeholder text for site name in installer can be confusing
parent
f7a24a4651
commit
71c28b2a4c
|
@ -13,8 +13,6 @@ use Drupal\Core\Form\FormStateInterface;
|
||||||
* Allows the profile to alter the site configuration form.
|
* Allows the profile to alter the site configuration form.
|
||||||
*/
|
*/
|
||||||
function standard_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
|
function standard_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
|
||||||
// Add a placeholder as example that one can choose an arbitrary site name.
|
|
||||||
$form['site_information']['site_name']['#attributes']['placeholder'] = t('My site');
|
|
||||||
$form['#submit'][] = 'standard_form_install_configure_submit';
|
$form['#submit'][] = 'standard_form_install_configure_submit';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue