public function MessageTemplate::id in Message 8
Gets the identifier.
Return value
string|int|null The entity identifier, or NULL if the object does not yet have an identifier.
Overrides EntityBase::id
2 calls to MessageTemplate::id()
- MessageTemplate::getText in src/
Entity/ MessageTemplate.php - Retrieves the configured message text in a certain language.
- MessageTemplate::preSave in src/
Entity/ MessageTemplate.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ MessageTemplate.php, line 161
Class
- MessageTemplate
- Defines the Message template entity class.
Namespace
Drupal\message\EntityCode
public function id() {
return $this->template;
}