0

I am using the beta release of the OpenID Connect module, and I encounter a feature issue in the code.

My goal is to display a simple login label of the block rather than using the default provided by the module. To explain, in line #92 of the file src/Form/LoginForm.php, #value is defined as

'#value' => t('Log in with @client_title', [
  '@client_title' => $client['label'],
]),

but I want to make it simplier, just #value' => t('Log in),

Is there any way to create and apply patch for beta release or other workaround how this can be handled? (Not hardcoding in the file itself)

The actual block displays the following.

enter image description here

What I want to show is the following.

enter image description here

How do I change the submission button text?

4
  • 2
    Just use hook_form_alter for such a small change, no need to involve patches
    – Clive
    Commented Jul 5, 2018 at 6:51
  • I havent yet tried doing such but Ill try. I would appreciate if you can give me a working example of a simple hook_form_alter? Thanks! Commented Jul 5, 2018 at 7:22
  • drupal.org is your friend ;) api.drupal.org/api/drupal/…
    – d70rr3s
    Commented Jul 5, 2018 at 9:26
  • Thanks guys for your response. Updated my issue. Added an actual code implemented. I havent yet made a working hook implementation but I tried to just log values. Commented Jul 5, 2018 at 13:18

0

Browse other questions tagged or ask your own question.