forms - formularios - modulo webform drupal 8
Agregar texto(¡solo texto!) A un formulario en Drupal 7 (1)
Puedes hacer esto usando #markup :
$form[''some_text''] = array(
''#markup'' => ''<p>Some text</p>''
);
OK, finalmente descubrí cómo agregar (o editar) controles de formulario a través de la form API en Drupal.
Pero ahora, me gustaría agregar texto a un formulario. No es un <textarea> , y no un <textfield> ; ambos pueden ser editados por el usuario. Me gustaría agregar <p>static text</p> , escrito por mí, para que lo lea el usuario.
¿Cómo podría uno hacer eso?