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 answers only not deleted user 47547

Drupal core uses email for a number of important tasks, such as verifying authenticated users' email address.

7 votes

How can I render an entity in a string?

Edit: For emails use renderPlain(). …
4uk4's user avatar
  • 102k
2 votes
Accepted

D8 render a contact form from theme preprocess

Your code will work when this patch is implemented: Add a view builder for contact_form
4uk4's user avatar
  • 102k
2 votes

Translating contact forms

I think, content in contact messages is the user input. Then you cannot translate this, because it is not saved to the database. The form itself is config translation, similar to the field definitions …
4uk4's user avatar
  • 102k
5 votes
Accepted

How do I render the absolute URL of a referenced entity in a simplenews newsletter?

external and absolute are different: external is an url without internal route. You can't change this property. This is set when you create an url. absolute is an option, which you can set at any ti …
4uk4's user avatar
  • 102k
4 votes
Accepted

How to translate contact message field labels

Standard fields of a contact form are predefined in code. Custom fields are in configuration and the translation works differently. This should work: Enable the module "Configuration translation" / …
4uk4's user avatar
  • 102k
1 vote

Configure page title block for contact form pages only

You only need to select the Contact form bundles you want to display the page title on. Leave anything else untouched.
4uk4's user avatar
  • 102k
2 votes
Accepted

Contact form placeholder translation

Normally you should be able to translate the placeholder in configuration translation as described in https://drupal.stackexchange.com/a/191927/47547. @Berdir pointed out that there is an open issue t …
4uk4's user avatar
  • 102k
1 vote
Accepted

How can add Contact-Us-form in custom place of page.html.twig file?

You can do this in four steps: Build a contact form. Put this contact form in a block with Contact Block. In block layout put the block in a region -> myregion. Place the region in page.html.twig -> …
4uk4's user avatar
  • 102k
1 vote
Accepted

Forced rendered node view results in empty node links

Useful for instance when rendering the values of tokens or emails, which need a render array being turned into a string, but do not need any of the bubbleable metadata (the attached assets and cache …
4uk4's user avatar
  • 102k
3 votes
Accepted

How can I get the uploaded file path of a contact form in drupal 8

You can get the file entity directly from the field and check if the field is not empty before applying any methods on the file object: /** @var \Drupal\contact\Entity\Message $contactMessage */ $con …
4uk4's user avatar
  • 102k