Drupal 9 info.yml (new) core_version_requirement / info file core requirements
use (if module works in both Drupal 8 and 9)
core_version_requirement: ^8 || ^9
in place of core: 8.x
in the module_name.info.ym file
use (if module works in both Drupal 8 and 9)
core_version_requirement: ^8 || ^9
in place of core: 8.x
in the module_name.info.ym file
$url = Url::fromUri('internal:/user/' . $member_uid); $link_to_user = Link::fromTextAndUrl('view', $url);
https://drupalize.me/tutorial/generate-urls-and-output-links?p=2766
code to grab a field value from a group module member field
$group = \Drupal\group\Entity\Group::load(31); $group_memberships = \Drupal::service('group.membership_loader')->loadByGroup($group); // $results = $query->execute(); foreach ($group_memberships as $member) { //$group_id[] = $member->groupContent->values["field_group_id"]["x-default"][0]["value"]; $group_id[] = $member->getGroupContent()->get("field_group_id")->value; } $options = array_filter($group_id);
This worked to grab the uid from the member
Adding a UI script allows for adding any sort of JavaScript, and it can be made global. In the left admin serach box, just type in "UI Script" and then go from there to add a new one, or search existing ones.
this worked for instance
var script = document.createElement('script'); script.src = "https://www.example.com/example.min.js"; document.head.appendChild(script) /*var script2 = document.createElement('script'); script2.src = "https://www.example.com/xapis/Pretranslate/xxxx-xxxx-xxxx-xxxx.js"; document.head.appendChild(script2)*/
https://www.drupal.org/docs/contributed-modules/code-review-module/php-…
phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /path/to/drupal/example_module phpcbf --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml /path/to/drupal/example_module
https://www.rogerperkin.co.uk/bose/how-to-connect-bose-wireless-headpho…
* On the QC35, push the button on the right earpiece all the way to the Bluetooth sign and hold it there for at least 10 seconds. Do this with the headset on your head, so you can hear the commands: “all paired devices cleared” and “ready to pair.” (These may not be the exact phrases you hear, but close.)
drush si --account-name=admin --account-pass=Labrad0r
drush uinf --uid=1
drush sql-query "update users_field_data set mail='xxxxxxxx@xxx.org' where uid=1;"
sql-query "UPDATE user_field_data set name='xxxxx' where uid=1;"
Unable to install the XYZ module since it requires the A module
https://drupal.stackexchange.com/questions/203367/unable-to-install-the…
"Adding the yaml_editor to core.extension.yml solved the issue. It perhaps were removed due to a complex git merge, and that's why my install process started to fail all that sudden."