Search Results
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 |
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
Accepted
Why the label of "subject' field in comment-form not be translated and how can I do the tran...
I finally found a solution to enforce translation of 'Subject' label in hook_form_alter which can make code more clear:
function mymodule_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form …
0
votes
1
answer
480
views
Why the label of "subject' field in comment-form not be translated and how can I do the tran...
In the baseFieldDefinitions of Comment Entity, the subject field is set to be translatable, but I can not find such a translation in User interface translation(admin/config/regional/translate) that ca …
1
vote
2
answers
176
views
What is the right way to use a different base theme for some pages when applying custom theme?
I know that custom theme usually inherited from the "stable" theme, and the default backend theme is "seven. I like the UI of "/user/login","/user/register" and "/forum" pages. If I use a custom theme …
0
votes
0
answers
50
views
How to trace the raw data of each element in a web page we want to check?
I'm a beginner of Drupal8, and I've encountered lots of difficulties till now. One of the biggest one is that when I enable the Theme Debug, I always confused about where the selected part comes from. …
1
vote
2
answers
117
views
How can I leave Subject as blank when fill nothing in the subject field of a comment?
When we fill nothing in the subject field of comment, drupal will use the comment body as the value of subject. See the code in CommentForm::buildEntity
// Validate the comment's subject. If not spec …
0
votes
Accepted
How can I leave Subject as blank when fill nothing in the subject field of a comment?
After codes pile up, the issue comes back again. Maybe some other function definition causes the above code of @Jdrupal lose its effect. I now use a reverse process of buildEntity in hook_ENTITY_TYPE_ …