public function Email::getSubject in Courier 8
Same name and namespace in other branches
- 2.x src/Entity/Email.php \Drupal\courier\Entity\Email::getSubject()
Get the subject for the email.
Return value
string The subject.
Overrides EmailInterface::getSubject
3 calls to Email::getSubject()
- Email::applyTokens in src/
Entity/ Email.php - Applies tokens to relevant fields.
- Email::exportTemplate in src/
Entity/ Email.php - Export the message values from this template to configuration values, as found in the 'courier.template.TYPE' config type. Where TYPE is the entity type ID of this entity.
- Email::isEmpty in src/
Entity/ Email.php - Determine if there is enough data to transmit a message.
File
- src/
Entity/ Email.php, line 79 - Contains \Drupal\courier\Entity\Email.
Class
- Defines storage for a composed email.
Namespace
Drupal\courier\EntityCode
public function getSubject() {
return $this
->get('subject')->value;
}