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 59002

Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.

0 votes
1 answer
32 views

Displaying content type as a field in a page

I am stuck with this architectural design for a client of mine. I am trying to create a testimonial block in 3 different pages, that client can pick any testimonial and I will create simple bootstrap …
Mr.T's user avatar
  • 133
0 votes

Changing '#view_mode' in content type's render array

function team_bio_node_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) { if($entity->bundle() == 'about_ …
Mr.T's user avatar
  • 133
2 votes
1 answer
2k views

Getting child term's Tid not the parent's

I created a form via Drupal 8 API, and I am creating a dropdown of a taxonomy terms which has a parent-child hierarchy. But when i select the taxonomy term, it displays term's parent's tid. … Note:I am not super experienced with drupal 8
Mr.T's user avatar
  • 133
1 vote

Getting child term's Tid not the parent's

For the further references: I changed my code to this: $option = []; $terms = \Drupal::service('entity_type.manager')->getStorage("taxonomy_term")->loadTree('collections', $parent = 0, $max_depth = 3 …
Mr.T's user avatar
  • 133
2 votes
2 answers
2k views

Accessing term's tid

I am trying to loop through a taxonomy term's tid, but somehow all the array elements are protected. It was very easy peasy in Drupal 7 with: $term_id_1 = $node->field_term['und'][0]['tid']; I am …
Mr.T's user avatar
  • 133
0 votes
1 answer
78 views

conceptual question about updating GET url

I am sorry if this question was asked before, but I am getting hard time with a concept of changing url parameters that was created by GET form in Drupal 8. … For your information, I am very new to Symfony and Drupal 8(I hope my question is not vague) Update: Sharing my code On my service I run my query in form with: public function getResults() { $query …
Mr.T's user avatar
  • 133
0 votes
1 answer
1k views

Changing '#view_mode' in content type's render array

I have a content type in Drupal 8 project that has image, name, info and body field as a default display, and image,name and information as a teaser display. …
Mr.T's user avatar
  • 133
0 votes
1 answer
141 views

creating a function that can create GET url variables as object when I need it

I am trying to parse my form's GET method and create a function that can get all the parameters from the URL in DRUPAL 8. …
Mr.T's user avatar
  • 133
1 vote
0 answers
146 views

How to modify menu-block template with preprocessor in theming level

(I am not worried about style of the block right now) This is what I got so far: I did this many times in Drupal 7 but I am pretty new to 8. …
Mr.T's user avatar
  • 133
1 vote
2 answers
729 views

Making a file downloading system with valid input in a custom drupal 8 form

I am trying to create a custom drupal 8 form, that is going to allow user to enter his/her firstname, lastname and email address, and if the user enters these credentials, will be able to download the …
Mr.T's user avatar
  • 133