You are here

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\Entity

Code

public function isLocked() {
  return !$this
    ->isNew();
}