Questions tagged [9]

Version tags should be used only for questions that apply to a version only, not to merely say what version a site is using.

Filter by
Sorted by
Tagged with
2 votes
0 answers
275 views

Patch gets not applied to Drupal locally in DDEV built with Composer from the Drupal Git repo

I try to build a local workflow to be able to review patches for core. I am using DDEV for the local environment. Steps I have taken: git clone https://git.drupalcode.org/project/drupal.git . ddev ...
rkoller's user avatar
  • 121
-3 votes
1 answer
2k views

How to get a list of entity types the Drupal 9 way?

I need to get a list of all entity types. EntityManager is deprecated. In Drupal 9 EntityTypeRepository should be used, though I don't see any reference to its being used. How would I use this ...
JAyenGreen's user avatar
0 votes
1 answer
920 views

Deprecated code cleanup: Updating EntityManager to EntityFieldManagerInterface

EntityManager is deprecated so I am trying to update code for Drupal 9. The documentation says it should usually be changed to EntityTypeManager, but in this case the code is using ...
Patrick Kenny's user avatar
1 vote
1 answer
45 views

How can I find out if the present theme version would work

In the last years I've used pixture reloaded, a subtheme to adaptive theme, on some drupal sites and I was wondering whether this will work on Drupal 9. I've seen that the Adaptive theme homepage has ...
paul77's user avatar
  • 23
-3 votes
2 answers
962 views

How can I get a list of all my site's module and themes? [closed]

I want to get the list of current modules and themes and modify them on Drupal 9, previously in Drupal 8,7 I used the following functions to get and save them but it seems they are depricated on ...
Yuseferi's user avatar
  • 22k
0 votes
2 answers
455 views

Tokens in menu link and title

menu_token module is working fine to achieve the purpose. Does the module token_filter has this functionality? I can use tokens in wysiwyg using token_filter but cannot make it working for menu title ...
Vishal Kumar Sahu's user avatar
12 votes
2 answers
6k views

Command to install Drupal 9 with Composer

The latest version of Drupal 8 can be installed via Composer with the following command: composer create-project drupal/recommended-project mynewproject What is the equivalent command to install the ...
user320691's user avatar
10 votes
2 answers
2k views

Set SameSite=strict for session cookies

I'm trying to figure out how to set the SameSite cookie attribute for Drupal 8 session cookies, but I can't find a solution. I thought SessionConfiguration might give me enough options, but it seems ...
mount_everest's user avatar
4 votes
1 answer
167 views

Drupal 8's last minor release = Drupal 9?

I have read about the planned release date of Drupal 9 is scheduled to be on June 3rd, 2020. I read this documentation about how to prepare a Drupal 8 site for Drupal 9: Prepare a Drupal 8 site for ...
hiew1's user avatar
  • 153
0 votes
0 answers
66 views

entity_print module -> file_unmanaged_save_data writes a pdf with 0 bytes

We have a custom written module (not by me), that uses entity_print to create PDF documents. It was working fine until I upgraded drush from 9.0-beta4 to 9.5 (had to update drush commands). The ...
aolsen356's user avatar
1 vote
3 answers
3k views

hook_node_view_alter not working

I'm hoping to finally find some solutions here. I'm new to custom module development in Drupal and I'm trying to learn the basics. What I'm trying to do is use hook_node_view_alter, however even at ...
JustineHelfire's user avatar
7 votes
2 answers
6k views

How can I verify users the first time they log in?

I was reading this article. I would like to know how logging in with the REST API in Drupal 8 works. By default, when users log in, Drupal will verify username and password. After the login, the ...
Jonh's user avatar
  • 777
1 vote
1 answer
2k views

avoid fatal guzzle exception error on api requests [closed]

how can i avoid fatal error due to ? |GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host| My code here do not catch it try { $client = new Client(); $response ...
Matoeil's user avatar
  • 3,409
2 votes
1 answer
13k views

How do I fix an uncaught TypeError? [closed]

I am using Drupal 8.1.8. It is giving me many JavaScript errors. Uncaught TypeError: Cannot read property 'permissionsHash' of undefined Uncaught TypeError: Cannot set property 'StateModel' of ...
Md. Shafiq Hossain's user avatar
8 votes
2 answers
15k views

EntityQuery condition "is not equal to..."

Problem : I need filtering entities based on the value of a multiple-choice field. I want my query returns all entities except those who have a given value ('doe' for this example). Actual : multiple-...
Antoine Subit's user avatar
6 votes
4 answers
483 views

Is it better to use the latest version released 1 month ago, or use the older but still supported version?

I am going to create a new website: Is it better to use the latest major version recently released, or the previous still-supported version? For example, if Drupal 9 were released one month ago, ...
apaderno's user avatar
  • 97.4k

1
32 33 34 35
36