Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!12325
Draft: Issue
#3529014
: Entity based email for user and contact
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Issue
#3529014
: Entity based email for user and contact
issue/drupal-3529014:3529014-generate-emails-from
into
11.x
Overview
0
Commits
2
Pipelines
2
Changes
14
Open
znerol
requested to merge
issue/drupal-3529014:3529014-generate-emails-from
into
11.x
1 month ago
Overview
0
Commits
2
Pipelines
2
Changes
14
Expand
0
0
Merge request reports
Compare
11.x
version 1
06bb7d5a
1 month ago
11.x (HEAD)
and
latest version
latest version
234a4131
2 commits,
1 month ago
version 1
06bb7d5a
1 commit,
1 month ago
14 files
+
728
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
14
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Entity/EntityEmailInterface.php
0 → 100644
+
28
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\Core\Entity
;
use
Symfony\Component\Mime\Email
;
/**
* Provides an interface for entities capable of generating email messages.
*
* @ingroup entity_type_characteristics
*/
interface
EntityEmailInterface
{
/**
* Returns an email message generated from an entity.
*
* @param string $key
* The key that should be used to identify the template used to render the
* entity.
* @param string|null $langcode
* (optional) For which language the entity should be rendered, defaults to
* the current content language.
*/
public
function
toEmail
(
string
$key
,
?string
$langcode
):
Email
;
}
Loading