use Drupal\Core\Form\FormStateInterface; /** * Implementa hook_form_alter(). */ function disable_autocomplete_login_form_alter(&$form, FormStateInterface $form_state, $form_id) { if ($form_id === 'user_login_form') { // Desactiva el autocompletar. $form['#attributes']['autocomplete'] = 'off'; if (isset($form['name'])) { $form['name']['#attributes']['autocomplete'] = 'off'; } if (isset($form['pass'])) { $form['pass']['#attributes']['autocomplete'] = 'off'; } } } Annual report | Centro Colombiano de Datos Oceanográficos
Skip to main content
Última actualización: 2024-11-12
Logo Dimar
Logo Ministerio de Defensa

Annual report

  • Home
  • 60
  • Tue, 11/12/2024 - 08:45