- π¨π¦Canada joelpittet Vancouver
Seems like we need to run this through
'#type' => 'machine_name',
when it's being generated in the first place?
What do you think, @milos.kroulik ?
When I tried to add SGF block via the layout builder, I encountered an error:
Error: Call to a member function getDefaultValue() on null ve funkci Drupal\simple_global_filter\GlobalFilter->get() (ΕΓ‘dek 66 souboru /app/html/modules/contrib/simple_global_filter/src/GlobalFilter.php)
The reason is that in SelectGlobalFilter
Html::getId($this->getFormId());
return machine name of global filter with hyphen instead of underscore, so $value = \Drupal::entityTypeManager()->getStorage('global_filter')->load($global_filter_id)
in \Drupal\simple_global_filter\GlobalFilter::get
fails.
Should we just convert hyphens to underscores in ::get
or is there a better solution?
Needs review
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Seems like we need to run this through
'#type' => 'machine_name',
when it's being generated in the first place?
What do you think, @milos.kroulik ?