public function MessageTemplate::isLocked in Message 8
Check if the message is new.
Return value
bool Returns TRUE is the message is new.
Overrides MessageTemplateInterface::isLocked
File
- src/
Entity/ MessageTemplate.php, line 308
Class
- MessageTemplate
- Defines the Message template entity class.
Namespace
Drupal\message\EntityCode
public function isLocked() {
return !$this
->isNew();
}