"Entities" is the term that in Drupal 7 is used for nodes, comments, taxonomy terms, and users. Third-party modules can then define new entity types.

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

Create Entity bundles programmatically

I found Paragraphs module and very excited. But this module not provide any API (i look at source), so i think that will be enough to use Drupal API and/or Entity API. Short intro. Module provide new ...
0
votes
1answer
13 views

How to create one entity and assign the same entity as field to new entity programatically

-I need to create one entity (need to do coding)- that I created already, now want to create another entity, lets say "Entity 2"( term(taxonomy, param1, param2, description( it will have multiple ...
2
votes
1answer
27 views

How to get workflow state transition history for a node?

In the admin section, for any given node, I need to add a dropdown field that lets QA assign that node to a developer who had previously made changes to the node's workflow state. I am currently using ...
0
votes
1answer
33 views

How to add an 'operations' link to a custom route in Drupal 8?

I'm implementing a custom entity with bundles in Drupal 8. In the list of bundle entities page (i.e. equivalent to Node's Content Types listing page), I would like to provide an extra option to the ...
1
vote
1answer
37 views

Where is documentation for $entity->data property? I.e. $commerce_order->data [closed]

I've searched google and the Drupal API, but I can't seem to find documentation for the data array that serializes/unserializes automatically that is attached to entities and stored in the data column ...
0
votes
0answers
17 views

How to duplicate a config entity via EForm

I am working with the EForm module and I have created an entity form using the UI, let's call it test_form. Now what I want to do is be able to duplicate this test_form into test_form_duplicate and ...
0
votes
1answer
8 views

How to update non-property value with entity_metadata_wrapper?

I wish to update values in commerce_payment_transaction entity. I am using such code: <?php $transaction = commerce_payment_transaction_load(58); $digests = array( 'DIGEST' => '456', 'DIGEST2' ...
1
vote
1answer
17 views

Can't access custom field through entity_metadata_wrapper

I've created a custom field and widget with the Field API. I've added this custom field to one of my node entities by using the Field UI and named it field_pec_uuid. However, when i try to access the ...
2
votes
1answer
29 views

How to create a default value for an entity base field in Drupal 8

Both the Examples module and the Drupal Console generate:entity:content both have code like this: $fields['first_name'] = BaseFieldDefinition::create('string') ->setLabel(t('First Name')) ...
0
votes
1answer
18 views

No response from Services Entity API when added '.json' to the end of alias

While configuring Services module, when I add '.json' to the end of the resource alias I get an emtpy page. Other resources that are not provided via Services Entity API output json the same way. The ...
0
votes
2answers
23 views

Relationships Between Nodes on Field

I'm trying to work with some information out of our enterprise system to create an employee directory, and I have a question regarding how I can relate nodes together. I have a content type called ...
0
votes
1answer
23 views

How to enable comments on custom entities

I'm using a contributed module that provides a custom entity. I would like to modify that entity and want to enable comments for this entity. Does anybody know how to enable commens for custom ...
1
vote
0answers
27 views

Parameters in the HTTP request

I am trying to render a block depending on the parameter(entity) present in the requested page. Suppose if I am on a url like this: http://localhost/drupal8/user/1 then a block with label user is ...
0
votes
0answers
9 views

EVA displaying nodes referencing to the same node type

I have 3 types of content: Category, Subcategory, Article. Article points to Category (field_category). Subcategory points to Category (field_category). Relationships are made with Entity ...
0
votes
1answer
15 views

How to upgrade module table scheme for entity

I've written a module that uses entities functionality. It has the following table scheme in .install file: $schema['transaction'] = array( //fields 'fields' => array( 'id' => ...
0
votes
0answers
6 views

Fivestar on custom entity

I have created a custom entity in my custom module. I have made it fieldable and added an admin interface so that I can add the fields provided by other modules to my custom entity. Using this ...
0
votes
0answers
27 views

Redirect to parent node after saving the field collection item

There is a field collection field for a content type, it is called field_item. I gave a direct link to the users to add content to this field based on the it's parent id. this is the url, ...
0
votes
0answers
15 views

How to change or add /node/*/registrations table fields entity registration module

For everyone working with entity registration, how can I achieve this? At the moment there is: ID E-mail User ... I want to add a field to that. So when I or a user with rights checks the ...
0
votes
1answer
23 views

How to add / update a field collection without updating parent node/entity drupal 7

I needed to to add / update field collections to node entities without updating the node entities. I tried two ways listed in https://www.drupal.org/node/1842304 and ...
1
vote
0answers
29 views

Views joining/relating a custom table entity to users through a field?

Using Drupal 7 and Views 3 - I have created a custom entity and can view it fine through Views using EntityDefaultViewsController. The Table is a view shared to the drupal database and is constructed ...
0
votes
1answer
23 views

Deleting field collection items

There is a content type called library which has a field collection type as a field and unlimited number of this field is allowed. I used Devel module to generate 200 nodes of library, so more than ...
0
votes
1answer
19 views

Lightbox doesn't show images loaded by entity_metadata_wrapper

There is a field collection in a content type, it's name is field_jeld. This field collection has an image field, it is field_image. I also defined an image style called book_mini. I need to load the ...
0
votes
2answers
11 views

How can I allow all users to access only a certain type of entityform?

I need that all users (anonymous users too) have access to the submissions of a certain type of entityform. I can set the permission View any entityform submission and it works but for all types of ...
0
votes
1answer
28 views

Theming of Entity registration form

I'm using entity registration module on a drupal 7 for events. I managed to enable the registration but I can't find out how to style the registration form. I tried to modify the form via css but I ...
0
votes
1answer
31 views

Having trouble figuring out PDO Exception

I am trying to figure out what is causing my PDO Exception. It's for a custom entity, and I had to rename some table columns because the API data changed (and it was easier to do it this way). It ...
0
votes
0answers
11 views

exif custom mapped fields not filled with entity translation

We are filling custom fields in file entities with data from IPTC tags in images on upload. For that we are using exif_custom. Since we are using entity_translation the exif_custom mapped fields with ...
0
votes
2answers
12 views

Is there a best form for security surrounding updating an entity of an unspecified type?

In Drupal 7, I have a field on both nodes and users that I'd like to update from a single function. What's the most efficient and what is best practice for updating by entity id? I want the client ...
2
votes
1answer
76 views

View mode in Drupal 8

I want to add a view mode for particular entity type programmatically in Drupal 8.I think the documentation on view modes for Drupal 8 has not been provided like it was provided for Drupal 7 hence I ...
0
votes
1answer
32 views

How to use different entity info per entity bundle?

I have three specific vocabularies that reside on different URIs and I need to have the Field UI configuration available for those URIs instead of only at one specific URI. How could I configure ...
0
votes
0answers
25 views

Way of creating entities during submit handler of another entities

I'm creating a module that defines two entities. Let's name them entityone and entitytwo. Entitytwo contains reference to entityone. What I'm trying to achieve is to create entitytwos during creating ...
0
votes
0answers
27 views

EntityMetadataWrapperException: Unknown data property og_user_node?

i have disabled "Administration menu" then after i enabled "Administration menu" still i am getting below error in home page "The website encountered an unexpected error. Please try again ...
1
vote
0answers
14 views

Services + Entity Reference - New revision vs. published revision

I'm using Services to deploy nodes from Site A to Site B, using UUID as the key to keep them synced. If the node exists on Site B, I do a PUT to update it, and if it doesn't exist, I do a POST to ...
0
votes
0answers
24 views

Flag the node that is referenced via an entity form submission with rules

I am trying to recreate an "enquiry basket". I am using Entityform, Inline Entity Form, Rules, Views and Flag. I have a node content type called Custom product. I am referencing different entity ...
1
vote
4answers
107 views

Deleting field collection bundle programmatically from core

I have a field collection bundle that I want to remove from my site. I was googling how to do that and came upon these instructions, but they seem to be from the ECK module, and only apply to ...
0
votes
1answer
25 views

Content type itself as entity

I need to classify and mark my content types. As example I have three content types for group messages in OG, ten content types which used as UC products, etc. So I need to add taxonomy and fields to ...
0
votes
1answer
23 views

On node edit form, how to edit field from a referenced entity?

I've got a master entity (node) that users edit, and I've got an entity reference on it. I'd like to be able to edit a field on the referenced entity on that master referencing entity's edit form. Is ...
0
votes
1answer
31 views

How and when are commerce licenses created, and when does the state change to “active”?

I'm working on a module that attempts to tie commerce_license in with the ACL (Access Control Lists) module. I am attempting to sell access to an individual node. I have a product type, product, and ...
1
vote
0answers
17 views

How to make custom entity properties available on entity_load?

I am altering another entity by adding some more (read only) properties to it. <?php hook_entity_property_info_alter(&$info) { $info['entity']['properties']['entity_edit_url'] = array( ...
1
vote
0answers
23 views

How to set HTML value for taxonomy description field using entity_metadata_wrapper

I've set my taxonomy description field to taking a filtered text value. Using the UI, I can edit a taxonomy term, write some HTML, save, and when I view it I see the HTML rendered by my browser. ...
0
votes
0answers
23 views

How does one add revision information to custom built entities?

I'm looking for help in gentle/simple terms for how to add revision information to my custom entities. This is maybe my fifth or sixth attempt to do this and every time I get lost and overwhelmed by ...
0
votes
1answer
62 views

EntityMalformedException: Missing bundle property on entity of type node

I'm doing a drupal 7 website, I've now started to experience a "EntityMalformedException: Missing bundle property on entity of type node. in entity_extract_ids() (line 7820 of ...
0
votes
2answers
27 views

Creating a node with multiple joined fields

I'm sure I used to know how to do this, but now I can't work it out. I have a content type, lets say it's called "project". A project can have multiple contributors, and for each contributor I need ...
0
votes
1answer
30 views

Display entityreference field in search-result.tpl

The entityreference field (field_parent) shows up in node.tpl using print render($content);, but isn't displayed in search-result.tpl. My search-result.tpl looks like this right now: <li ...
0
votes
0answers
14 views

Rule to store user's last post date and scheduled rule based 30 day reminder

In this screnario, user's can post 1 node of a specific content type every 30 days (interval changes depending on user role). We are using node_limit to accomplish this; it's doesn't play with rules. ...
0
votes
0answers
21 views

Node-insert check and alter value of other entities

I have a site I'm building where the admin can add sale "specials" (sales) to a store. So there's the store content type - and the sales are entity references appended to the store. Each ...
0
votes
2answers
82 views

How to get the field values with EntityQuery?

I am working on a query filtering form that lists entities. I have various 'range' fields and I would like to display the min and max values. Is it possible to retrieve field values with EntityQuery? ...
0
votes
0answers
13 views

How do I change the entity type of a bundle in ECK?

I have a load of entity types and bundles that have been created. I'd like to consolidate all the bundles under one entity type. Going from many entity types with one bundle to one entity type to ...
0
votes
0answers
11 views

contextual or conditional file entity view mode

I have some different view mode for file entities (created with the entity view modes module). In an node I have a select field and an image field. As display format I set 'rendered file'. Now I ...
2
votes
2answers
20 views

How do I create a container entity that contains variable number of fields

I am interested in creating a content type that contains a variable number of fields. Each field contains an entity reference to another entity, but as I said there may be one field or 4 fields. I'm a ...
0
votes
1answer
34 views

Getting access denied when altering user view route

I want to display custom content for the user profile page instead of the entity view so I am altering the entity.user.canonical route and I am setting a custom controller and title compared to the ...