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
0
votes
1answer
238 views

Making entities under another entitytype

Suppose, I've created -name -machine_name an entity_type myentity with its schema as: -name -machine_name Next, I want to create another entity subentity that will be grouped under myentity. ...
0
votes
3answers
492 views

What entity should entity_id be joined on?

I'm writing a complex custom query to get order information from a Drupal Commerce install for export. The table field_data_commerce_customer_address has a column entity_id. I've tried to join that ...
0
votes
1answer
861 views

Autocomplete entity reference - Required to select entity

I'm having problems with a required field that is an entity reference. This is my case: I have a content type advertisement that has an entity reference product, what is an autocomplete widget. The ...
0
votes
2answers
456 views

Custom field widget: hook_field_is_empty()

I'm creating a custom module that has implemented these hooks: <?php /** * Implements hook_field_widget_info(). */ function MYMODULE_field_hook_info() { return array( 'CUSTOM_field' => ...
0
votes
1answer
200 views

update shipping profile on user update

I use drupal commerce, I want if user info update if there is exist shipping profile update it else create new. function mymodule_user_update(&$edit, $account, $category){ $def_id=...
-1
votes
1answer
221 views

how to alter view path field plugin

I Fetched the path field from view using views_pre_render(\Drupal\views\ViewExecutable $view) now I made some changes on that path field but I want path field use my data instead of drupal default ...
-1
votes
1answer
271 views

Manage Display Field Label not changing

In Content Types->Manage Display->Label, there is the options of Above, Inline and Hidden, except no matter which one I choose, the page shows all field labels as Above. I have "clear Caches", ...
-2
votes
3answers
403 views

Get value from field in php [closed]

I am trying to get fields value in php but I cannot make it work. My code <?php $value = $node->field_price; return $value; ?> Can somebody please help me to solve this? I believe it has ...

1
15 16 17 18
19