Skip to main content

Questions tagged [entities]

Nodes, comments, taxonomy terms, and users, in the terminology used since Drupal 7, are generally called "entities."

Filter by
Sorted by
Tagged with
2 votes
1 answer
58 views

How to make a list of field values extensible in a contrib module?

I am building a contrib module called Push Notification Registration Tokens. This module allows users to save registration tokens for push notifications (tokens to register devices, which function ...
Patrick Kenny's user avatar
1 vote
0 answers
43 views

Which widget would work to allow the visitor to make a radio selection per entity?

I have a list of "candidates" via a views entity display. For each of those candidates, I'd like the visitor to be able to choose "yes", "no" or "maybe" (i.e. a ...
Alan Dixon's user avatar
0 votes
1 answer
41 views

Show taxonomy fields on node form

I have a a content form that includes a reference to a taxonomy and allows for new taxonomy terms to be added from the node form. The taxonomy has two fields, both of which are marked as required. ...
Bobtail3095's user avatar
1 vote
1 answer
60 views

How to add a view for managing custom entities like Node and Media do?

I have a contrib module that uses a custom entity I generated with drush generate entity:content. By default, this has an EntityListBuilder class. I decided I wanted to have a view to manage my entity ...
Patrick Kenny's user avatar
0 votes
1 answer
141 views

Embed a multi-step form (or multiple forms) which interacts with an iframe

Question about embedding a multi-step form (or multiple forms) which interacts with an iframe on a node [updated on 10th June, 2025 for further clarity] I would like anyone who are experienced with ...
Kami Lam's user avatar
0 votes
1 answer
68 views

Custom entity used in Field UI

I would like to add a reference field to my custom entity to a stock entity (eg. user) using the Field UI and the stock entity reference field (not my own custom field). The custom entity is perfectly ...
Gábor's user avatar
  • 942
2 votes
1 answer
81 views

How can I obtain the currently published entity revision of a specific moderation state?

I have a few custom content entities that I added moderation to via Content Moderation. I am trying to figure out how to load the latest published entity in the published moderation state. I currently ...
Kevin's user avatar
  • 28.2k
1 vote
1 answer
44 views

Can't filter entity reference by id without "Administer entity type" permission for custom entity with JSON:API

I have a custom entity Apple that has an entity reference to another custom entity Orange. I have a JSON:API resource that returns Apple, and I filter by orange like this: https://example.ddev.site/...
Patrick Kenny's user avatar
-4 votes
1 answer
81 views

How Apply filter on Autocomplete field's options which is content reference field?

How can I apply a custom filter to an autocomplete field's options in Drupal 10? The field is a content reference type, and I want to control the suggestions displayed based on specific conditions or ...
Darshilbhai Patel's user avatar
0 votes
1 answer
46 views

Is there a way to bulk upload Allowed Values in Selection List Field - List (text)

I have a Selection List field, which is a List (text). I'm wondering if there's a way to bulk or mass upload the Allowed Values for a selection list, instead of adding them manually one by one. Given ...
drupal noob's user avatar
0 votes
0 answers
37 views

Editing a custom field using the API

I'm attempting to edit a field in Drupal using the restui module. It is a field type "Iframe" out of the iframe module and is saved to the database in the node__field_pocdart_iframe table. I ...
amaclay's user avatar
1 vote
1 answer
43 views

Override relation field currently selected value display text

While using relation field, that allows to select one to many other nodes, I encountered in issue of not being able to change it's display. In my case, relations are people and their name is node ...
Deele's user avatar
  • 111
3 votes
1 answer
157 views

How can I swap an entity form for a given bundle?

I want to use a different form altogether from the defined edit form for a given bundle of an entity. I have found how to swap the form for every bundle of the entity here: Override entity form ...
Jaypan's user avatar
  • 18.2k
0 votes
0 answers
38 views

Config export annoation not working

I have a config entity with the following config_export annotation. * config_export = { * "id", * "label", * "is_staging" * }, The config entity ...
Daniel Harper's user avatar
3 votes
0 answers
107 views

Possible to remove revisioning from an entity type entirely?

We implemented a custom entity type a few years back with revisioning enabled, either thinking that it would be useful or not realizing it was enabled. As it turns out, we've never actually used ...
Matthew Weiner's user avatar

15 30 50 per page
1
2 3 4 5
583