In a views, I have only one content type, with a field_import. In _views_pre_render I have entered this code to calculate the sum
foreach ($ view-> result as & $ row) {
$ Total + = $ row -> _ entity-> get ('field_import') -> value;
}
I created a module for Drupal 7 in which I import my data through a CSV file, in a column 10 I put ids as reference values for a reference entity field as in the image below , what I need is when I upload my file I want the values to be filled automatically in the reference entity field named "field_theme"
I would like to create a D8 module which will display a list of a given ContentType based on a filter method. Some of the filter elements are dependent on others. For example, talking about cars, if one selects the make Honda, he expects to find within Models <Civic, Jazz, CR-V etc> but not <A1, A2, A3, A4, A6> which corresponds to Audi make.
This is the main point of my question: how to create these dependent filter elements (for example all make and dependent models for cars) ?