Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 56510

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

0 votes

How can I react when a commerce product is explicitly created via the UI?

Yes, this is correct way. But it will work only if product is created with the help of form. If you want to add some actions every time when product is created even it is created without the help of p …
Maria Kvitova's user avatar
7 votes
3 answers
6k views

Remove entity type without module uninstall

I created entity type my_entity in my module. But now I don't need this entity anymore and I want to completely remove it without module's uninstall. I want to remove both definition and all database …
Maria Kvitova's user avatar
13 votes
1 answer
4k views

What is the purpose of entity_keys in ContentEntityBase?

I'm trying to figure out what is the purpose of entity_keys in ContentEntityBase entities and what fields should be set as entity_keys. …
Maria Kvitova's user avatar
1 vote
2 answers
227 views

Is it important to use base table in query?

Is it important to use base table for entity in query? For example if I want to get all user's id of specific role, should I do: $query = db_select('users', 'u'); $query->distinct(); $query->fi …
Maria Kvitova's user avatar
3 votes
2 answers
2k views

Config entities and views integration

Do Config entities have views support? What I have: ConfigEntity which have fields: id, admin_label, display_label, config_options. … I use views to show all ContentEntity entities and I outputted fields: entity_config_id, author. …
Maria Kvitova's user avatar
1 vote
Accepted

Get list of custom fields and update their settings programatically

Try this one: $fields = \Drupal::service('entity_field.manager')->getFieldDefinitions('contact_message', 'personal'); You can change personal to your contact form bundle.
Maria Kvitova's user avatar