"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
2answers
22 views

Entity view displays are throwing dependency errors during installation

I have a custom entity in my module. During installation I am creating a bundle for this entity. Then in the config I have two entity view displays for this bundle. One of those displays is for the ...
0
votes
1answer
21 views

Custom Entity API does not give individual fields in Views, only (sometimes information-less) rendered entities

note: I'm currently exploring hook_entity_property_info_alter and clearing the cache forcibly by truncating the cache table as I've had many iterations of work on this over the years. (Though I ...
0
votes
1answer
34 views

How to add values to field collection fields within user profiles

I have a field collection that contains several other fields (text and taxonomy reference) for collecting and unlimited number of addresses. I have added this field collection to user profiles. This ...
0
votes
0answers
29 views

Creating an entity programatically with an image field

I know that with the entity module I can create entities simply with entity_create() and I can access simple scalar fields with just the ->value(''); method. However, how would I go about ...
0
votes
0answers
6 views

Listing of entities linked to a node X in the edition form of that node X

I have 2 content types : Product Main Page and Product Sub-Pages. First, I create a node (Product Main Page). Then I create my sub-pages nodes (Product Sub-Pages) and I link them to the Product ...
0
votes
0answers
11 views

Translating Entity Types Values

I am using entity types for hierarchic relations like: EntityType City -> contains many ET Districts -> contains many ContentType Apartment.. City: Vienna District: xyz Apartment: abc I can ...
0
votes
0answers
15 views

Custom entity api development adding a revision to entity lead to broken views handlers

(note: see extra info at bottom) I have a chain of entities which were joining together in Views nicely by defining their relationships as joins in hook_views_data_alter (note - I had actually used ...
0
votes
0answers
49 views
+50

Drupal8 views broken handler with custom entity type

I'm building a Bet website a long test of Drupal 8. Thanks to drupal console I managed to create a lot of custom entity types. Now I want to expose my entity to views but I get this message; One ...
0
votes
1answer
23 views

Unexpected Entity Reference Autocomplete behaviour

I'm using Entity API, Form API and Entity Reference Autocomplete in Drupal. I have a relationship between two types, clubs and courses, each club can have many courses so basically the table course ...
0
votes
2answers
18 views

Preview option for entity registration form

Is there a way to display preview before submission using Entity Registration? Similar functionality as there is with node submit option. So that user can make changes if anything is wrong.
0
votes
0answers
31 views

How to use fields in node's comment in a node's Computed field?

I'm new in php and I'm stuck with this. First problem, In a computed field of a node, I would like to use fields that are in the comments of this node. I don't know how to get access to comment's ...
0
votes
0answers
16 views

How do I display links based on user's role and reference?

I am building an evaluation platform in Drupal using either entity forms or webform. Attendees will evaluate the course, instructor, and location of the lab/site. "Entities" are: courses: which is ...
0
votes
1answer
41 views

Slow AjaxResponse for node content

I am using Drupal 8 so there is very little documentation or benchmarks, but I believe a route I have set up for ajax responses is not as performant as it could be. This is the route: next_node.ajax: ...
0
votes
1answer
21 views

How to make view mode available only to selected bundle?

I have three taxonomy vocabularies which means that I have three bundles of the vocabulary entity type. I have a few view modes for them and one of them has to be available only to one of those ...
0
votes
1answer
16 views

Drupal 8 Custom Entities from a UI?

Does anyone know away to create custom entities from Drupal 8 UI that is not ECK? I try it out using ECK and still a little bit buggy.
0
votes
0answers
9 views

multilingual language site (Drupal) entity reference

I am working on multilingual language site (Drupal) I would like to get data depends on language can I know how to write query using Entity Reference ?
0
votes
1answer
41 views

How to setup Advanced Content Filter to not remove drupal-entity tags?

I use CKEditor to create content. And Media Plugin to upload and manage images. Now I have a problem that as soon as I activate Advanced Content Filter in CKEditor settings, my images are removed. I ...
0
votes
0answers
16 views

How to get the list of fields for an Entity?

In my Drupal site I am using the Field and Entity modules to define fields like company, address and telephone number for the User entity and sync these with the LDAP data in the LDAP SSO/Auth module. ...
0
votes
0answers
14 views

How to fix this issue in drupal7 using windows [duplicate]

How to fix this issue ? Fatal error: require_once(): Failed opening required '/var/www/.../includes/sites/all/modules/entity/includes/entity.inc' (include_path='.:') in ...
0
votes
1answer
33 views

Create custom entity type programmatically

maybe my title is not correct but I have written a module that creates a new entity. Now I would like to create a few of these entities on hook_install. I can create a new entity, that's not the ...
0
votes
2answers
22 views

How to save a new term with multiple fields while adding content?

Not only do I want to add terms as I create content through the UI, but I want to add terms that have multiple fields (i.e. more fields on the taxonomy besides the 'Name' that populates the list). How ...
0
votes
1answer
30 views

How do I get Rules to see my custom entity?

From what I've read in the past few days, Rules will gather all information it needs from hook_entity_info. I still can't get my custom entity to appear in the data selector to make things work ...
0
votes
0answers
11 views

Entity reference : Populating comma automaticaly

I want to add comma after each value is get selected. Means, I don't want to do it by the user. The comma should be populated automatically after the value get selected. Can you please help me to what ...
0
votes
1answer
15 views

Theming custom entity created with Entity API: accessing entity's fields in template file

First of all let me say that this is my first project in Drupal and I am still confused, I apologize if my question is stupid. I created a custom entity in Drupal 7 using Entity API. The custom ...
2
votes
1answer
21 views

Entity Translation Permissions

Is it possible to give some user/role the permission to translate only one language? I've seen these permissions: Translate any entity. Translate field content for any fieldable entity. But these ...
1
vote
0answers
60 views

error “EntityMalformedException” when creating a node as guest

We have a node type with permission to create new nodes for guests. When we try to create a new node of this type as guest we get the following error: EntityMalformedException: Missing bundle ...
0
votes
1answer
27 views

Why does node/%node/random/stuff work?

I just noticed this, and I can't find an explanation. I can go to node/1/45645645/klzkelfkzlef/47z4e5fz56e4f/etc and it'll just show node/1 instead of a 404 page. The same happens with ...
1
vote
1answer
34 views

Create Entity bundles programmatically

The Paragraphs module seems great, but it does not provide any API (I looked at the source). So I think that will be enough to use Drupal API and/or Entity API. About this module: it provides a new ...
0
votes
1answer
15 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
39 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
50 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
39 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
9 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
28 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
34 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
22 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
25 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
24 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
28 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
7 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
34 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
19 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
35 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
42 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
27 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
24 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
13 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 ...