I have different User roles created and have assigned users and permissions under the roles. Now I would like to create a Taxonomy term that hold the User groups. Once I create taxonomy term, I want to link it with a content type that creates events for selected user groups using Full Calendar module. So is it possible to create a taxonomy term that consist of user roles?
Example: User roles: Group1 (has 2 users and set of permissions), Group2(has 3 users with different permissions)
My module needs to read and write files in the public:// and private:// folders. In the installation procedure I create the folders and files that do not exist, using the functions \Drupal::service('file_system')->prepareDirectory() and copy ().
As the title suggests - I Want to create a table when the module is installed. The Drupal way to do this is to create a .install file, which is Drupal 7 way.
1. Is there any Drupal 9+ way to do the same i.e. creating a table with module installation.
2. Another thing is ~ how to integrate with existing data. If the module is uninstalled accidentally, I want to disable or keep the uninstalltion function blank or any other way to keep the data in the database when the module uninstalled accidentally.
In a form I have various fields and in several of these (fields) I have inserted callBacks to perform calculations.
Eg all subsequent fields have their own callBack:
Field 1 callBack 1
Field 2 callBack 2
Field 3 callBack 3
In sequence everything is fine. The problem arises when after typing the data in field 3 I return to field 1 to update a value. Since the value of field 1 is used in the calculation of the callBack of field 3, I am obliged to update the value of field 3 to have the calculation done again.