Yury N β created an issue.
Yury N β created an issue.
It is not just modules. When using JSON API we get error
Undefined constant "Drupal\Core\Entity\SAVED_UPDATED"
Which is not resolved by adding `$this->moduleHandler->loadAll();` but requires require_once(__DIR__ . '/../../../../core/includes/common.inc');
Another issue with destination path for subdirectory installation. If you also have language prefix in path it is lost: /subdirectory/de/admin/content/media
becomes /subdirectory/admin/content/media
Latest dev works for me. Thank you.
I was also thinking about using language negotiation in some way. Found that GraphQL
module has it's own negotiation plugin. But did not understood where this "context" comes from.
Your solution covers our use cases. Thank you.
Moving to RTBC.
It seems to work for route. Thank you.
But menu item itself (title for example) is untranslated.
Yes, language argument would be great
Yury N β created an issue.
Latest dev resolved issue for us. Thank you!
Yury N β created an issue.
Proposed solution
Yury N β created an issue.
Did not had time for deeper testing, but it seems to work well. Thank you for your work!
Just one thing: now it returns original translation if requested language translation does not exist. It would be nice to have some control over this behavior, like return only requested translations or return translations and fallback to original language if no translation.
Glad to hear that you found different solution. I have realized that my patch creates situations when entity referenced from required field does not have translation, which results in "Cannot return null for non-nullable field" errors
Not sure if it is correct way to do it. But it worked for out case.
Yury N β created an issue.
Had to update patch because of https://www.drupal.org/project/drupal/issues/3036459 π Packaging info from .info.yml often creates conflicts when patching Active
Yury N β made their first commit to this issueβs fork.
Yury N β created an issue.
Run into the same issue. But in our case error happens in Select2::getValidSelectedOptions(). This patch solved the issue for us.
Yury N β created an issue.
Patch #37 works for required state when field has no uploaded file. But with file uploaded 'upload' element is hidden and field label's 'for' points to nothing, so required state does not work. I made a label and states to refer to 'fids' element in this case.
P.S. You need a patch from https://www.drupal.org/project/drupal/issues/1091852 π Display Bug when using #states (Forms API) with Ajax Request Needs work to have states working with AJAX elements