@agentrickard great ! Many thanks and bravo for this work.
I tested the patch on D10.0.2 with Domain 2.0.x-dev, it's OK for me too. Thanks @tim-diels !
Steps:
- Add patch to composer = https://git.drupalcode.org/project/domain/-/merge_requests/32.patch
- Apply the patch
- Remove and recreate the existing domain in backend
- Export config
- The config files
system.action.domain_access_*.yml
have updated dependencies, and the import is done correctly
benJBmC → created an issue.
@chadmandoo about that :
Adding the core version requirement works. Can we get this in dev? Currently having to download manually.
In the meantime you can avoid the composer install error and install dev version using composer with
the Lenient Composer Plugin →
.
Just do this before composer install :
$ composer require mglaman/composer-drupal-lenient
$ composer config --merge --json extra.drupal-lenient.allowed-list '["drupal/eck"]'
And then the magic happens :-)
The patch #31 works for me too, thanks! I had an error using the ebt_slick_slider module when adding media to the custom block: Uncaught TypeError: $element.dialog is not a function
Thank you for the code @Anna D, it gave me an idea too. I needed to limit media access per user except for the administrator role. And indeed the contextual filter works well for the view list but not for the widget. Here is what I did, it seems to work:
function mymodule_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
if ($view->id() == 'media_library') {
if (!in_array('administrator', \Drupal::currentUser()->getRoles())) {
$media_content_data = $query->setWhereGroup('AND');
$query->addWhere($media_content_data, 'media_field_data.uid', \Drupal::currentUser()->id(), 'IN');
}
}
}
Patch in #11 is working for me on D10.0.2, and my export tests are fine in CSV and XLSX (with contrib modules Views Data Export and Excel Serialization). Thanks
Like @RgnYLDZ I also tested the module in dev version on D10.0.2 by simply changing the line in .info file :
core_version_requirement: ^8.8 || ^9 || ^10
Used with contrib module Inline Entity Form, no problem to report for the moment !