🇪🇸Spain @ady1503

Account created on 1 December 2009, almost 15 years ago
#

Recent comments

🇪🇸Spain ady1503

Hello.

Sorry for the delay.

Yes, I am going to sponsor you to add the new functionality.

It will have to be with the possibility of choosing between current mode and the new mode.

It will have to be through a checkbox or boolean-checkbox in the configuration of the field it controls.

In the field settings you have to add the option if you want the current mode to be highlighted all, or highlighte only field.

Thank you

🇪🇸Spain ady1503

Versión de Drupal
10.3.2
Gin 8.x-3.0-rc13

When I activate:

Enable sticky action buttons
Displays all actions of the form in the sticky header.

There are no save or cancel or dellete buttons on the views popup configurations.

🇪🇸Spain ady1503

I make refactoring of mi code to

  \Drupal::messenger()->addStatus(t('Dear %user, Welcome to our %site',['%user' => 'admin', '%site' => 'Drupal Learn']));
  // Prepare the goto Url.
  $url = Url::fromRoute('<front>');
  $response = new RedirectResponse($url->toString());
  $request = \Drupal::request();
  // Save the session so things like messages get saved.
  $request->getSession()->save();
  $response->prepare($request);
  // Make sure to trigger kernel events.
  \Drupal::service('kernel')->terminate($request, $response);
  $response->send();

and mi notifications works without patch 45, with theme gin and olivero.

source: https://blog.birk-jensen.dk/drupal-http-redirection-from-anywhere
https://www.drupal.org/node/2023537

🇪🇸Spain ady1503
  \Drupal::messenger()->addStatus(t('Dear %user, Welcome to our %site',['%user' => 'admin', '%site' => 'Drupal Learn']));
  $response = new RedirectResponse($url->toString());
  $request = \Drupal::request();
  // Save the session so things like messages get saved.
  $request->getSession()->save();
  $response->prepare($request);
  // Make sure to trigger kernel events.
  \Drupal::service('kernel')->terminate($request, $response);
  $response->send();

source: https://blog.birk-jensen.dk/drupal-http-redirection-from-anywhere
https://www.drupal.org/node/2023537

Works form mi for same problem with messenger after update to Drupal 10.3.0

Hope help.

🇪🇸Spain ady1503

I have applied all changes:

https://git.drupalcode.org/project/advanced_pwa/-/commit/5bf36319604f7e3...

and

patch number #18

and the end result is that everything works fine.

Thanks

🇪🇸Spain ady1503

Hello.

Tiredness is not good when taking tests.

In the end with your changes the module works.

You only have an error with these lines:

AdvancedpwaForm.php

/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
if (!empty(file_save_upload('icon_upload'))) {
$file = file_save_upload('icon_upload');
$filename = \Drupal::service('file_system')->copy($file[0]->getFileUri(), 'public://images/pwaimages/');
$form_state->setValue('icon_path', $filename);

}

Look at what is in bold that gives an error about the non-existent route.
That really does not exist, because this folder is not created when installing the module.

I'm going to test the functionalities, and I'll let you know.
I will test the push system to make sure it works correctly.

Thank you

PS.
Sorry for wrong evidence, I was tired.

🇪🇸Spain ady1503

Thank you for your work.

Later I will install a new drupal installation and try clean.

I never do tests in production.

The only thing I would like you to understand: if in the same test bench the PWA module works perfectly, but the advanced_pwa does not, it does not work and errors appear for a reason.

I'm not saying that your work is not well done, I'm just informing you, so I can help you improve.

Thank you

🇪🇸Spain ady1503

Hello.

I have tried your changes.

They do not work.

After investigating and analyzing I detected:

The pwa module creates the "pwa" folder and saves all the icons there, in the path:

"../files/pwa"

/home/***/public_html/main_domain/web/sites/default/files/pwa/android-chrome-512x512.png

/home/***/public_html/main_domain/web/sites/first_site/files/pwa/android-chrome-512x512.png

/home/***/public_html/main_domain/web/sites/second_site/files/pwa/android-chrome-512x512.png

URLs:

https://main_domain/sites/default/files/pwa/android-chrome-512x512.png

https://main_domain/sites/first_site/files/pwa/android-chrome-512x512.png

https://main_domain/sites/second_site/files/pwa/android-chrome-512x512.png

Your module creates the "advanced_pwa/icons" folder but it creates it in the "private" folder that is in the configuration and path:
"../files/private/advanced_pwa/icons"

/home/***/public_html/main_domain/web/sites/default/files/private/advanced_pwa/icons/android-chrome-512x512.png

/home/***/public_html/main_domain/web/sites/first_site/files/private/advanced_pwa/icons/android-chrome-512x512.png

/home/***/public_html/main_domain/web/sites/second_site/files/private/advanced_pwa/iconsandroid-chrome-512x512.png

URLs:

https://main_domain/system/files/private/advanced_pwa/icons/android-chrome-512x512.png

https://main_domain/system/files/private/advanced_pwa/icons/android-chrome-512x512.png

https://main_domain/system/files/private/advanced_pwa/icons/android-chrome-512x512.png

system is the format control of drupal for hide real private route and url for access control en private file system.

As you can see, the pwa module uses the free path outside the private folder, because I have access to the icon without being logged in.
The pwa module controls only which pages and roles the manifest file is loaded or not.

Not yours.

I'm just telling you your only biggest problem is: permissions.

And another thing in php 8.3 the following errors appear:

Warning: Undefined property: Drupal\advanced_pwa\Controller\AdvancedpwaController::$requestContext in Drupal\advanced_pwa\Controller\AdvancedpwaController->advancedpwaGetManifest() (line 190 of modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php).
Drupal\advanced_pwa\Controller\AdvancedpwaController->advancedpwaGetManifest()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)


Warning: foreach() argument must be of type array|object, string given in Drupal\advanced_pwa\Form\ManifestConfigurationForm->submitForm() (line 445 of modules/contrib/advanced_pwa/src/Form/ManifestConfigurationForm.php).
Drupal\advanced_pwa\Form\ManifestConfigurationForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object) (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object) (Line: 597)
Drupal\Core\Form\FormBuilder->processForm('advanced_pwa_settings_form', Array, Object) (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Warning: foreach() argument must be of type array|object, null given in Drupal\advanced_pwa\Controller\AdvancedpwaController->userHasSelectedRoles() (line 319 of modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php).
Drupal\advanced_pwa\Controller\AdvancedpwaController->userHasSelectedRoles() (Line: 290)
Drupal\advanced_pwa\Controller\AdvancedpwaController->settings()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)


Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in Drupal\advanced_pwa\Controller\AdvancedpwaController->settings() (line 276 of modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php).
Drupal\advanced_pwa\Controller\AdvancedpwaController->settings()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 53)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 741)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

PS.

The pwa module works on all my sites with or without a private or public file system, in single domain or multidomain format.

As I explained above: the icons must be saved in /"../files/advanced_pwa/icons/".

And now it does it in ../files/private/advanced_pwa/icons/",

"../files/private/" is my folder configured in settings.php for private file system, and the drupal configuration to serve the files only in private mode.

Thank you

🇪🇸Spain ady1503

@solideogloria

Yes you're right.

But for me it works perfectly.

Because my notifications are to control access and number of content added. And stopping the script is not a problem.

I do redirect and then project the notification to inform the user that they do not have permission or have exceeded the number of allowed content.

I wanted to inform, if this is a reason for finding the drupal core problem, when it is solved I will return to the normal code.

Thank you.

🇪🇸Spain ady1503

Hello.

I inform you that works without any patch.

I am using olivero and gin drupal themes, core notifications works well. But:

For my custom code to work, type:

\Drupal::messenger()->addStatus(t('Dear %user, Welcome to our %site',['%user' => 'admin', '%site' => 'Drupal Learn']));

\Drupal::messenger()->addStatus(Markup::create('Duplicate Markup / string.'), TRUE);

exit(); <---

I have added only the exit() function, stop script.

I know it is not a correct solution, but in my functionality it works well for me.

I don't know why when adding exit(), after the notification functions works well.

Without exit(), custom notifications do not work. None, but with exit() at the end of the notifications function work.

I hope it is resolved correctly.

Gracias

🇪🇸Spain ady1503

Hello.

I inform you that your module works perfectly without any patch.

I am using olivero and gin drupal themes, core notifications works well. But:

For my custom code to work, type:

\Drupal::messenger()->addStatus(t('Dear %user, Welcome to our %site',['%user' => 'admin', '%site' => 'Drupal Learn']));

\Drupal::messenger()->addStatus(Markup::create('Duplicate Markup / string.'), TRUE);

exit(); <---

I have added only the exit() function, stop script.

I know it is not a correct solution, but in my functionality it works well for me.

I don't know why when adding exit(), after the notification functions your module works, and not just yours. But the others too. I have done tests. Without exit(), custom notifications do not work. None, but with exit() at the end of the notifications function it does work.

I hope it is resolved correctly.

Thanks for your module.

🇪🇸Spain ady1503

I have checked my installation.

When installing your module, the folder is not created: files/advanced_pwa/icons/.

When private file mode is activated. Here is your problem.

Because the pwa module has created the pwa folder for me in each subdomain that I have, in private file system.

You have to review the operation of the pwa module, how it creates the folders and checks the permissions and the file system that is activated in each installation.

What you tell me is file public system, not a private one.

Gracias

🇪🇸Spain ady1503

How I'm explaining it to you.

The pwa module works in my multidomain, multisite installations. I have the block with the button to install the app.
The installation of the web app works, the only problem is that they do not have a push system.
Works on private file system, loads icons. I can create an app using https://www.pwabuilder.com.
My subdomain format is https://subdomain.domain.com

I'm just looking to help.

My opinion on multidomain installations, multisite is possible. My multidomain, multisite drupal system doesn't share anything except the code. The databases are individual for each subdomain, I have common and individual modules.

The only thing I did was install its advanced_pwa module in an test subdomain and I couldn't use it.

Your system needs required that you generate keys first. This means that the key is unique for each domain, subdomain.

An url is individual and instalation folder too. I don't share the same content and configuration in mi system multidomain.

Report to be able to help get a module with complete PWA functionalities.

Thank you

https://web.dev/articles/building-multiple-pwas-on-the-same-domain

🇪🇸Spain ady1503

"After uploading the icon, can you access it as anonymous?
If you can't, I know the code to change. This would then save the file in the public files directory.
"

no not

"Are the multi sites sub-folders of the same domain?"

yes is same domain.

I have the entire file system in private mode. I had this error and the pwa module, they have added access control and they have to check which file system the drupal installation has. If it is private, you have to check the access permissions to the files in the controller. And serve the icons according to permissions and access.

Path: /system/files/advanced_pwa/icons/android-chrome-512x512.png. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\system\FileDownloadController->download() (line 82 of /home/***/public_html/***/web/core/modules/system/src/FileDownloadController.php).

🇪🇸Spain ady1503

Versión de Drupal
10.3.1

PHP
Versión
8.1.29

Path: /system/files/advanced_pwa/icons/android-chrome-512x512.png. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\system\FileDownloadController->download() (line 82 of /home/***/public_html/***/web/core/modules/system/src/FileDownloadController.php).

Drupal\Core\File\Exception\DirectoryNotReadyException: The specified file 'temporary://mstile-144x144.png' could not be copied because the destination directory 'public://images' is not properly configured. This may be caused by a problem with file or directory permissions. in Drupal\Core\File\FileSystem->prepareDestination() (line 457 of /home/***/public_html/***/web/core/lib/Drupal/Core/File/FileSystem.php).

Error: Call to a member function getCompleteBaseUrl() on null in Drupal\advanced_pwa\Controller\AdvancedpwaController->advancedpwaGetManifest() (line 190 of /home/***/public_html/***/web/modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php).

Warning: Undefined property: Drupal\advanced_pwa\Controller\AdvancedpwaController::$requestContext en Drupal\advanced_pwa\Controller\AdvancedpwaController->advancedpwaGetManifest() (línea 190 de /home/***/public_html/***/web/modules/contrib/advanced_pwa/src/Controller/AdvancedpwaController.php)

🇪🇸Spain ady1503

I have done tests with patches together and separately. And I always emptied the Drupal cache.

Nothing works with the patches.

🇪🇸Spain ady1503

I say again without the izi and bigpipe patch, drupal core notifications work perfectly.

I have custom modules with \Drupal::messenger()->addStatus(t()) and they worked fine until the last core update.

Nothing works with the patches.

🇪🇸Spain ady1503

Yes, I have done tests together and separately. And I always emptied the Drupal cache.

🇪🇸Spain ady1503

Yes of course. I have used the bigpipe patch and it doesn't work either.

🇪🇸Spain ady1503

Hello.

The patch doesn't work.

Before the patch all core notifications worked, but custom notifications do not work due to the core 10.3.1 issue.

After the patch no notification works.

Thanks for the work, I will wait for the solution to the core 10.3.1 issue and activate your module again.

🇪🇸Spain ady1503

#45 NOT works for me on Drupal 10.3. Thanks.

🇪🇸Spain ady1503

I confirm all working.

Thanks for this module.

🇪🇸Spain ady1503

For this same reason I ask.

The list of checkboxes is an essential utility.

It doesn't have it either and the module:

https://www.drupal.org/project/datafield

I understand that it is difficult at the structural level to make it possible to have the possibility of checkboxes.

Thanks for the work done.

🇪🇸Spain ady1503

It is simple.

Just add a number field and that's it.
This error appears when saving the new node also when editing.

And very important:

That the error is repeated for each field number of the custom_field in the same content type.

I also saw a strange thing.

When you create a new content type and save it, the keys appear and not the values. But if you go to Manage Presentation and simply change the presentation to key in any number field and save, all the number fields show the value and the one you changed shows the key, and then you put it back to value, everything is normal. You have to repeat this matter if you have added another number field, so that all the number fields present the values ​​and not the keys.

These errors appear only the first time when creating a new content type. Then they no longer appear.

Create a new content type, add a custom_field of number format.

Create the first one, and you will see the error, edit it and the error appears. But the following new ones created and edited no longer appear.

Gracias.

🇪🇸Spain ady1503

Hello.

This part of module make favicon invisible Progressive Web App Extras - pwa_extras module.

I uninstall this part, module pwa_extras and favicon is working vell.

Thanks.

🇪🇸Spain ady1503

@oliverpolden here is working example for year filter node

function yourmodule_views_query_alter(ViewExecutable $view, QueryPluginBase $query) {
  // make sure we're altering the correct view
  if ($view->storage->get('id') === 'your_view' && $view->current_display === 'your_display') {
    $currentYear = date('Y');
    $query->addWhereExpression(0, "EXTRACT(YEAR FROM FROM_UNIXTIME(node_field_data.created)) = :year", [':year' => $currentYear]);
    }
}

node_field_data.created is for created year

🇪🇸Spain ady1503

@oliverpolden i got the same issue but your patch not working Versión de Drupal 10.2.6.

It would be correct for this module to have the option to activate the current year automatically if none is indicated or it is left empty.

Thank you.

🇪🇸Spain ady1503

Hello.

After update to Versión de Drupal 10.2.6. To many errors apear without add Field Group Layout to content type:

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_builder/layouts/twocol_section/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_builder/layouts/twocol_section/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_builder/layouts/threecol_section/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_builder/layouts/threecol_section/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_builder/layouts/fourcol_section/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_builder/layouts/fourcol_section/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_discovery/layouts/onecol/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_discovery/layouts/onecol/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_discovery/layouts/twocol/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_discovery/layouts/twocol/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_discovery/layouts/twocol_bricks/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_discovery/layouts/twocol_bricks/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_discovery/layouts/threecol_25_50_25/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_discovery/layouts/threecol_25_50_25/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/core/modules/layout_discovery/layouts/threecol_33_34_33/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/core/modules/layout_discovery/layouts/threecol_33_34_33/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(/home/***/public_html/***/web/modules/contrib/vefl/layouts/onecol/templates/theme.inc): Failed to open stream: No such file or directory in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

Warning: include_once(): Failed opening '/home/***/public_html/***/web/modules/contrib/vefl/layouts/onecol/templates/theme.inc' for inclusion (include_path='/home/***/public_html/***/vendor/pear/archive_tar:/home/***/public_html/***/vendor/pear/console_getopt:/home/***/public_html/***/vendor/pear/pear-core-minimal/src:/home/***/public_html/***/vendor/pear/pear_exception:.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in include_once() (line 515 of core/lib/Drupal/Core/Theme/Registry.php).

When add to content type:

Deprecated function: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\Core\Layout\LayoutPluginManager->Drupal\Core\Layout\{closure}() (line 204 of core/lib/Drupal/Core/Layout/LayoutPluginManager.php).

Deprecated function: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\Core\Layout\LayoutPluginManager->Drupal\Core\Layout\{closure}() (line 204 of core/lib/Drupal/Core/Layout/LayoutPluginManager.php).

Deprecated function: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\Core\Layout\LayoutPluginManager->Drupal\Core\Layout\{closure}() (line 204 of core/lib/Drupal/Core/Layout/LayoutPluginManager.php).

Deprecated function: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\Core\Layout\LayoutPluginManager->Drupal\Core\Layout\{closure}() (line 204 of core/lib/Drupal/Core/Layout/LayoutPluginManager.php).

Deprecated function: strnatcasecmp(): Passing null to parameter #2 ($string2) of type string is deprecated in Drupal\Core\Layout\LayoutPluginManager->Drupal\Core\Layout\{closure}() (line 204 of core/lib/Drupal/Core/Layout/LayoutPluginManager.php).

Warning: Undefined array key "field_layout" in Drupal\field_group_layout\Plugin\field_group\FieldGroupFormatter\LayoutFormatter->settingsForm() (line 81 of modules/contrib/field_group_layout/src/Plugin/field_group/FieldGroupFormatter/LayoutFormatter.php).

As you can see, it is affecting other modules that "Layout Builder" uses.

When I uninstall the module "Field Group Layout" there is no errors.

Thanks

🇪🇸Spain ady1503

Change to private file system please.

I say: Very important, my file system is "private".

before login:

after login:

🇪🇸Spain ady1503

Hello.

Is an default favicon.ico from theme.

I don't load any custom favicon.ico.

When user is anonimous user the favicon.ico is show in browser tab, but when user is login the favicon.ico is not show.

Thanks

🇪🇸Spain ady1503

Hello.

If possible, could you explain to me what is the reason for disconnecting html5 validation?

I have commented on this line and reviewed the code and I don't see anywhere the need to disconnect html5 validation.

I have done tests and so far it works for me.

I will keep you informed.

Thanks for the module.

// Turns off HTML 5 validation, as it breaks the validation/errors.
//$form['#attributes']['novalidate'] = 'novalidate';

🇪🇸Spain ady1503

I don't know why composer installed version 1.0.27.

All good.

Close the incident.

Thank you.

🇪🇸Spain ady1503

Hello.
jurgenhaas , Can you present an example?
Of:
The selected value should be used as the fourth argument to the entity_print_views.view route and if it's not default, the \Drupal\entity_print_views\Controller\ViewPrintController::viewPrint method can call a new method in the print engine plugin to change the orientation.

Gracias

🇪🇸Spain ady1503

@earthangelconsulting

Thank you so much.

Gracias

🇪🇸Spain ady1503

@earthangelconsulting

Can you show an real example?

Where did did you implement the code.

Thanks

Gracias

🇪🇸Spain ady1503

@AlfTheCat

Look here:

https://www.drupal.org/project/pwa/issues/3371404 🐛 Defined App Image Icon isn't used Fixed

🇪🇸Spain ady1503

In the end I have managed to find the problems that the manifest.json file does not load automatically.

First important point is that web browsers other than "Chromium" group does not work the PWA. In Firefox, the manifest.json and the block appear, but the add APP button does not appear, in Opera the add APP button appears but nothing does when clicked.

Second point for anonymous users to see the PWA block and for application to be available on the web page, you need to have active: "See published content" for all roles and for the anonymous role.

I think you need to add a permission group to the PWA. For example by roles: view PWA, view PWA block, etc. The issue of permissions has to be prioritized. I have a mechanism that controls who can see what is published, but for simpler cases it will not be correct. PWA has to be controlled by roles.

Another thing that would be important is the name of the file, instead of manifest.json, many sources on the web recommend:

<!-- Startup configuration -->

NOTE: File extension: .webmanifest or .json?
The IANA registered file extension for the manifest is .webmanifest. Some web servers recognize this extension and transfer the file using the standardized application manifest media type (application/manifest+json). Developers can also choose a different extension (e.g. .json) or none at all (e.g. /api/GetManifest), but are encouraged to transfer the manifest using the application/manifest+json MIME type, although any JSON MIME type is ok.

With these changes, I get a decent PWA functionality in my project.
If my thoughts are correct add to the following version.

Gracias

🇪🇸Spain ady1503

I have found that causes the error:

TypeError: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given in imagecopyresampled() (line 424 of /home/***/public_html/***.com/web/modules/contrib/pwa/src/Form/ManifestConfigurationForm.php).

If the option that Drupal controls and serves the files is activated, it gives an error. If it is chosen that the web server does it, it does not give an error.

I think in this code is the error:
line 401
// Save new image.
$wrapper = $this->streamWrapperManager->getViaScheme(
$this->config('system.file')->get('default_scheme')
);
Because if I have the file system private, it looks in the folder declared private in settings, but by default the PWA saves the files in public.

Have need to add an if function to check the filesystem and allocate the correct one.

Another very important thing is to delete the cookies from the website. Not only the Drupal cache, to see the changes in the manifest.json file.

It also remains that manifest.json file does not load automatically.

Gracias

🇪🇸Spain ady1503

After update from issue:

$wrapper = $this->streamWrapperManager->getViaScheme(
$this->config('system.file')->get('default_scheme')
);
- $files_path = '/' . $wrapper->basePath() . '/pwa/';
+ $files_path = \Drupal::service('file_url_generator')->generateString("public://pwa") . '/';
$file_uri = $files_path . $file->getFilename();

- $file_path = $wrapper->realpath() . '/pwa/' . $file->getFilename();
+ $file_path = $wrapper->realpath() . '/' . $file->getFilename();

$config->set('image', $file_uri)->save();

I have this error en browser logo of developer state:

The FetchEvent for "https://***.com/manifest.json" resulted in a network error response: a redirected response was used for a request whose redirect mode is not "follow".

And in drupal logo:

TypeError: imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given in imagecopyresampled() (line 424 of /home/***/public_html/***.com/web/modules/contrib/pwa/src/Form/ManifestConfigurationForm.php).

manifest.json still not loading.

There are also problems with deleting This image is your application icon. (png files only, format: (512x512), when add or delete icon.

Thanks for help.

🇪🇸Spain ady1503

Hello.

How is it possible to add the orientation in each of the views page.

In the configuration of the view, in global print add the possibility of choosing the orientation of the page, so that it is not default as it is now.

When it is chosen in the general configuration, the orientation of the page is the same for all.

I would like to add the possibility at least to the views page to choose the orientation for each individual one.

Thank you.

🇪🇸Spain ady1503

In views global head or footer add:
Global text area with filtred text
Provide markup for the area using any available text format.

And add the folow

<button onclick="window.print()"><strong>Print this page</strong></button>

This will put an botton for print the curent view page.

For mi is work well. Thanks Ruslan Piskarov for an idea.

🇪🇸Spain ady1503

Thanks.

I made changes in mi site and works.

You are right, it is the solution.

Commit this.

🇪🇸Spain ady1503

I confirm that, it does not work with anonymous users and neither with all authenticated users.

On my site, users with the power to create content do see and can utilize the PWA button. But without, no.

I think it will be necessary to add the access control in the PWA module.

🇪🇸Spain ady1503

For mi, mi changes working well.

Don't forget, the manifest.json file is not loaded automatically.

🇪🇸Spain ady1503

Hello.

I made this:

Using the rebuild script
Open settings.php (/sites/default/settings.php) in any plain text editor. Add this line to the end of the file and save it:

$settings['rebuild_access'] = TRUE;
Visit http://www.example.com/core/rebuild.php in your browser (where www.example.com is your site’s URL). After a short pause, you should be redirected to the home page of your site, and the cache should be rebuilt.
Open settings.php (/sites/default/settings.php) in a text editor. Find the line you added with $settings[rebuild_access], remove this line, and save the file.

In drupal 10.1.1 and works all, and this is for #3370828: Ensure that edge caches are busted on deployments for css/js aggregates, too.

If you want delete an cache.

Thanks

🇪🇸Spain ady1503

For the PWA and the APP installation to work you have to load the manifest.json manually at the link yoursite.com/manifest.json .

It's a bug in the main module, it doesn't load the file automatically.

If you have loaded the logo before drupal version 10.1.1 load the manifest.json file manually and it will work.

In drupal 10.1.1 it is not possible to add the logo of the app, it gives an error and the PWA module cannot be used. I have opened an issue.

🇪🇸Spain ady1503

I found that the problem persists if both options are activated:

Bandwidth Optimization
External resources can be automatically optimized, which will reduce both the size and the number of requests to your website.

Combine CSS files

Merge JavaScript files

🇪🇸Spain ady1503

I have made the following changes:
in pwa_a2hs.libraries.yml
dependencies:
- core/drupalSettings
- core/jquery
- core/once

and

in js/pwa_a2hs_prompt.js

(function ($, Drupal, once) {
'use strict'

// Use jQuery once() so the button doesn't get added multiple times.
$(once('showButton', '.pwa-a2hs', context)).each(function () {

})(jQuery, Drupal, once);

And the "Install APP" button works.

Commit if is correct.

Thanks

🇪🇸Spain ady1503

Hello

@wildcats369 with patch work well.

https://www.drupal.org/project/vefl/issues/3341550 🐛 TypeError: Illegal offset type in isset or empty Needs review

Thanks

🇪🇸Spain ady1503

Hello

I have installed the modules You must activate the modules RESTful Web Services - , Serialization - , Views Data Export - , Serialization (CSV) -

one by one.

In the end install the Views Data Export phpspreadsheet.

The website becomes obsolete and the following appears:

[07-Jul-2023 20:49:35 Europe/Madrid] PHP Fatal error: Declaration of Drupal\views_data_export_phpspreadsheet\Encoder\XlsEncoder::encode($data, $format, array $context = []) must be compatible with Symfony\Component\Serializer\Encoder\EncoderInterface::encode(mixed $data, string $format, array $context = []): string in /home/***/public_html/***.com/web/modules/contrib/views_data_export_phpspreadsheet/src/Encoder/XlsEncoder.php on line 76

Gracias

🇪🇸Spain ady1503

Tienes razon

Here is the solution:

https://www.drupal.org/project/permissions_by_term/issues/3231556 🐛 PHP Deprecated: Required parameter $grantUpdate follows optional parameter $langcode Fixed

Thanks

🇪🇸Spain ady1503

I confirm, NOT working in drupal 10.1.0

I will wait.

🇪🇸Spain ady1503

Hello.

Could it be that the problem is in the module: Permissions by Term?

I have it activated and configured to control all the functionality of the website. Because with the admin account everything works.
Before the upgrade to drupal 10.1 everything worked.
Users have the same permissions as before the update. The strange thing is that FormStates and ajax do not work for users other than admin, and only in the Olivero theme, in the Gin theme everything works fine.
Thank you

🇪🇸Spain ady1503

I have found a temporary solution, enable ajax in the "frontpage" view.
And this is how the menu works and the recent content block is displayed,
but the ajax still doesn't work when editing the new node.

🇪🇸Spain ady1503

The last patch not working.

This is the error:

[06-Jun-2023 21:44:41 Europe/Madrid] Uncaught PHP Exception Drupal\Core\Entity\EntityStorageException: "SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'es' for column `***_com`.`node_access`.`grant_update` at row 1: INSERT INTO "node_access" ("nid", "langcode", "fallback", "realm", "gid", "grant_view", "grant_update", "grant_delete") VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7); Array
(
[:db_insert_placeholder_0] => 219
[:db_insert_placeholder_1] => es
[:db_insert_placeholder_2] => 1
[:db_insert_placeholder_3] => permissions_by_term
[:db_insert_placeholder_4] => 219
[:db_insert_placeholder_5] => 1
[:db_insert_placeholder_6] => es
[:db_insert_placeholder_7] => 0
)
" at /home/***/public_html/***.com/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php line 815
[06-Jun-2023 21:45:50 Europe/Madrid] PHP Deprecated: Optional parameter $langcode declared before required parameter $grantDelete is implicitly treated as a required parameter in /home/***/public_html/***.com/web/modules/contrib/permissions_by_term/src/Factory/NodeAccessRecordFactory.php on line 9

I revert to original.

Thanks

🇪🇸Spain ady1503

Hello.

I can confirm the bug.

So far I have not found the solution.

Thanks

🇪🇸Spain ady1503

I will confirm that it still does not work in drupal version: 9.5.3

🇪🇸Spain ady1503

Hello.

I'm asking for the community's help again because I think there is a bug in drupal core with the form #state API.

Specifically, checkboxes and lists are not activated as required by form #state.

In the case of checkboxes, the requirement asterisk is not added, but required="required" and aria-required="true" attribute are added, but the checkboxes do not become required.

The same is with the lists except that the asterisk is added, but it is not required either.

I have a list, which I use with the checkbox/radio widget, which is the master.

And I also use the other slave list with the checkbox/radio widget, I have controlled the visibility and the requirement with form #state.

When I choose a value or checkbox from the master list the slave list becomes visible and should be and required.

And the requirement doesn't work, an visibility working well.

I read a lot about this bug, since the drupal 7 version it is not well fixed.

If someone can give me some solution.

Thanks for help.

/**
 * Implements hook_form_BASE_FORM_ID_alter() for node form.
 */
function buangh_mantenimiento_diario_piscina_form_node_form_alter(&$form, FormStateInterface $form_state, $form_id): void {
  $node = $form_state->getFormObject()->getEntity();
  if ($node->getType() !== 'mantenimiento_diario_piscina') {
    return;
  }

// field hide/view
$form['field_operacion_filtro_mantenimi']['#states'] = [
  'visible' => [
    ':input[name^="field_operacion_de_mantenimiento[Limpieza del filtro]"]' => ['checked' => TRUE],
  ],
];
// field required
$form['field_operacion_filtro_mantenimi']['widget']['#states'] = [
  'required' => [
    ':input[name^="field_operacion_de_mantenimiento[Limpieza del filtro]"]' => ['checked' => TRUE],
  ],
];

}
🇪🇸Spain ady1503

Thanks for the clarification and explanation.

🇪🇸Spain ady1503

Thanks for the clarification and explanation.

🇪🇸Spain ady1503

Thank you for your time. 

It works properly.

A curiosity. Why do you use: hook_form_BASE_FORM_ID_alter() , and not: hook_form_alter() ?

At the technical level, I want to understand it.

I always use hook_form_alter().

hook_form_alter Perform alterations before a form is rendered.
hook_form_BASE_FORM_ID_alter Provide a form-specific alteration for shared ('base') forms.
hook_form_FORM_ID_alter Provide a form-specific alteration instead of the global hook_form_alter().

🇪🇸Spain ady1503

I have understood in the end what the problem consists of.

The reference field type, if not being predetermined required, add by default the option _none as default value.

My function is correct but it does not work for the reference field fields with the Widget Select.

I could not find the solution to control the mandatory requirement of a reference Field, with API #state form.

🇪🇸Spain ady1503

When I change to autocomplete widget:

$form['field_entidad_externa_limpieza_d']['widget']['0']['target_id']['#states'] = [
'required' => [':input[name^="field_protocolo_aplicado_por_lim"]' => ['value' => 'Entidad externa']],
];;

Everything works well.

When I transform to select widget the $form['field_entidad_externa_limpieza_d'], it doesn't work.

The problem is in the select widget.

The asterisk that is required appears, but can be saved, without the required field message appearing.

I noticed that the: aria-invalid="true" is not added to $form['field_entidad_externa_limpieza_d'] field, as in another entity reference field that the requirement is activated by default.

It all consists of the select widget.

Thanks if any idea.

🇪🇸Spain ady1503
  /*
  * con esta funcion controlamos la visibilidad y requerimiento de los campos: field_entidad_externa_limpieza_d, field_datos_de_la_entidad_limpie
  * mediante la selecion del campo: 	field_protocolo_aplicado_por_lim
  */

  if (isset($form["field_protocolo_aplicado_por_lim"]) && isset($form["field_entidad_externa_limpieza_d"]) && isset($form["field_datos_de_la_entidad_limpie"])) {

    $form['field_entidad_externa_limpieza_d']['#states'] = [
      'visible' => [':input[name^="field_protocolo_aplicado_por_lim"]' => ['value' => 'Entidad externa']],
    ];

    $form['field_datos_de_la_entidad_limpie']['#states'] = [
      'visible' => [':input[name^="field_protocolo_aplicado_por_lim"]' => ['value' => 'Entidad externa']],
    ];

    $form['field_entidad_externa_limpieza_d']['widget']['0']['target_id']['#states'] = [
      'required' => [':input[name^="field_protocolo_aplicado_por_lim"]' => ['value' => 'Entidad externa']],
    ];

    $form['field_datos_de_la_entidad_limpie']['widget']['0']['value']['#states'] = [
      'required' => [':input[name^="field_protocolo_aplicado_por_lim"]' => ['value' => 'Entidad externa']],
    ];

  }
  /*
   * fin
   */

Here  https://www.drupal.org/docs/drupal-apis/form-api/conditional-form-fields, 

The State 'required'

The state 'required' is a special case. You can't use 'required' with the field containers, instead you'll have to target the actual input field. Thanks to @ tresti88  for his examples in the comments.

Example code by @ tresti88 . from the comments for the API docs.

      $form['auto_complete_field_0']['widget']['0']['target_id']['#states'] = [
        'required' => [
          [':input[name="my_select_list"]' => ['value' => 'user']],
        ],
      ];

Example.

This field is works fine, is simple text field, and his transforms to require.

field_datos_de_la_entidad_limpie

Thanks

Production build 0.71.5 2024