API page: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Ba...

 * This will become the $form_state->getBaseInfo()['base_form_id'] used to
 * generate the name of hook_form_BASE_FORM_ID_alter().

There is no method getBaseInfo() anywhere in Drupal core.

CommentFileSizeAuthor
#2 2883646-2.patch614 bytesshashikant_chauhan

Comments

joachim created an issue. See original summary.

shashikant_chauhan’s picture

Status: Active » Needs review
StatusFileSize
new614 bytes

I think correct function is getBuildInfo not getBaseInfo.

dinesh18’s picture

Status: Needs review » Reviewed & tested by the community

@joachim and @shashikant_chauhan, yes we do not have getBaseInfo() function. I have reviewed the FormStateInterface,
URL : https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Form%21Fo...
and I didn't found the getBaseInfo() function.
I found FormStateInterface::getBuildInfo and it seems to be perfect.
#2 looks good to me. +1 to RTBC.

cilefen’s picture

Version: 8.4.x-dev » 8.3.x-dev
gábor hojtsy’s picture

gábor hojtsy’s picture

Title: docs for BaseFormIdInterface mention method that doesn't exist » Fix incorrect mention of getBaseInfo() on BaseFormIdInterface to getBuildInfo()

  • Gábor Hojtsy committed 97bd9ff on 8.3.x
    Issue #2883646 by shashikant_chauhan, Dinesh18: Fix incorrect mention of...

  • Gábor Hojtsy committed e798a83 on 8.4.x
    Issue #2883646 by shashikant_chauhan, Dinesh18: Fix incorrect mention of...
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: +Novice

Superb, thanks, committed. I also looked and could not find getBaseInfo() mentioned elsewhere so this was the only incorrect mention to fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.