Hello - I was advised that in php.ini, I should set variables_order to "CS" only because we should not use the super global arrays for $_GET, $_POST, $_ENV, and $_REQUEST. However, if I set variables_order = CS, Drupal core no longer functions correctly. In particular, the login form on Drupal (core) no longer works. It does not log in the user and just refreshes the page. Per php.ini documentation, using those super global arrays creates extra overhead. Also, per https://www.drupal.org/project/drupal/issues/
I try to add a link appear in /admin for a specific role. This specific role has a few permissions (adding specific content for example) and I would like to hide certain links appear in /admin and to add other links in this same page.
I tried to use the hook MYMODULE_page_attachments_alter but I did not find the way to add links into this.
PHP 8.1 introduced a new data model, Enumerations. Enumerations allow for the creation of custom data models that can only contain a fixed set of allowed values. These enumerations can be very useful when working with Drupal list fields, which are a field type that allows for selection from a predefined set of values. As both enumerations and list field contain a predefined set of values, using Enumerations to back Drupal list field makes for more stable code that is easier to understand, and less likely to fail.