Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Problem/Motivation
In \Drupal\inline_entity_form\Plugin\Field\FieldWidget\InlineEntityFormComplex::formElement, we have
$this->setIefId(Crypt::hashBase64(implode('-', $parents)));
Also, we have that formula in 3 other palces.
Proposed resolution
Abstract that out into ::makeIefId().
Remaining tasks
* Code, test, commit.
* In a followup, make a CR and notification issues for modules subclassing InlineEntityFormBase. (A code search only shows 1 module*)
User interface changes
None.
API changes
Formally, none.
Draft CR:
Subclasses of InlineEntityFormBase must use makeIefId() to create the Id, to profit from future bugfixes depending on this.
Data model changes
Issue fork inline_entity_form-3203941
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
geek-merlinComment #3
geek-merlinComment #5
geek-merlinAs expected all green and nothing breaks from this simple refactoring, so merging. Tiny steps forward.