New answers tagged

1

Drush also supports this starting in version 10.5 drush route - see all routes drush route --path=/user/1 drush route --name=update.status Drush docs page


1

For Drupal 8 you can use: $query->accessCheck(FALSE);


0

this worked for me in Drupal 8 https://www.drupal.org/project/views/issues/1907940 function utility_views_pre_view(\Drupal\views\ViewExecutable $view, $display_id, array &$args) { $view->getStyle()->options['grouping'][0]['field'] = 'field_category'; }


0

Has anybody tried these approaches for a D9 site?


1

In Drupal 8 you can use the file_url_generator service Drupal::service('file_url_generator')->generateAbsoluteString($uri) Because the file_create_url($uri) function is deprecated: https://www.drupal.org/node/2940031


0

RFC 2822 says that each line of body text should be no longer than 78 characters and be terminated by \r\n, for a total of 80 characters on the line. Drupal core follows this standard and wraps your text to make sure your email complies with this specification. There is no way to send a specification-compliant plain text email without wrapping the lines. ...


0

The tutorial hasn't been updated and it contains instructions that are for Drupal 4.7.x, since it's Drupal 4.7.x to come with a database.pgsql file. Drupal 5.x doesn't have that file and its installation instructions don't include that step; the installation.txt file also says: As of Drupal 5.0 installation has been automated by an install script. It is no ...


0

To always be able to set the default language for the loaded accounts, I implemented hook_entity_info_alter() using the following code. function mymodule_entity_info_alter(&$entity_info) { // Disable the static cache for users. if (!empty($entity_info['user'])) $entity_info['user']['static cache'] = FALSE; } } The alternative would be to ...


Top 50 recent answers are included