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.

14 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
73 views

What is the design pattern for plugins (and their managers) called?

I am trying to figure out how to design (and subsequently implement) as plugin-like solution in Symfony. I found this article https://drupalize.me/tutorial/what-are-plugins?p=2766 that says: Plugins ...
1
vote
0answers
45 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 ...
0
votes
0answers
16 views

How do I hide the title field of 'groups'?

I created a subtheme of Olivero, and I want to hide the title for group entities. I have tried different ways, such as: In the block configuration, I used the visibility settings for excluding group ...
0
votes
1answer
31 views

User edit form on custom page is resetting roles when user belongs to the “Administrator role”

I'm trying to display the user edit form on a custom page with limited fields. Submitting my form works well, but if I have the Administrator role, roles are reset. I don't understand why this is ...
0
votes
0answers
13 views

doctrine/reflection conflicts with doctrine/common

My current Drupal version is 8.9.3, running on PHP 7.3.20, and updated from Drupal 8.9.2 (fresh install) using compose update. I tried to upgrade to Drupal 9 used this https://www.drupal.org/docs/...
0
votes
0answers
46 views

How do I add CSS classes to an image field?

My goal: I'm learning drupal. I'm creating bootstrap carousel myself. Without any plugins or themes. I use default classy theme. So far what I have done. Administration -> Configuration -> ...
0
votes
1answer
22 views

How to create block to list all children of an entity?

I want to list all the nodes that have the currently viewed node as their parent. To make this more tangible and less abstract, let's do an example: I have a content type Locations which has an ...
0
votes
0answers
35 views

How to subscribe to the “order placed” “order paid” event?

I created a module for generating a license and recording it in the user field, I want to create an event, it should be triggered when the user has completed a purchase (bought an item or paid for an ...
0
votes
0answers
11 views

Entity where member variable is different type than when serialized

Not entirely sure how to phrase this. I've got a config entity that needs to store a block id. In my config I have the mapping set to a string for the id. When I load the entity, I'd think it would be ...
0
votes
0answers
143 views

Why am I getting an error that kint is an unknown function?

Why am I getting an error that kint is an unknown function? When I use kint in my twig template, I get the following error: The website encountered an unexpected error. Please try again later. Twig\...
0
votes
0answers
39 views

How to create a term reference field programmatically

I need to add a taxonomy reference field to a node bundle, programmatically. I found a couple examples here, but one actually is incorrectly titled and is about creating a from field for it, and the ...
0
votes
1answer
12 views

REST API OAuth Authorization and Authentication

I am very much confused about the way OAuth authorization and authentication works in Drupal 8/9. Let me put my points first, please correct me if I am wrong. Authorization is when an entity proves a ...
0
votes
0answers
30 views

How to specify a patch for dependencies inside a module's composer file?

I would like to know how to specify a patch inside a module's composer file. The scenario is like this: On my Drupal 9 site, I want to run the command composer require module. The module composer ...
0
votes
1answer
81 views

Error after copying the updated files

I want to update a site from Drupal 8.9 to 9.0. After copying all files and trying to execute update.php, I get the following error: The website encountered an unexpected error. Please try again ...