You are here

public function HeartbeatType::isLocked in Heartbeat 8

File

src/Entity/HeartbeatType.php, line 257

Class

HeartbeatType
Defines the Heartbeat type entity.

Namespace

Drupal\heartbeat\Entity

Code

public function isLocked() {
  $locked = \Drupal::state()
    ->get('heartbeat.type.locked');
  return isset($locked[$this
    ->id()]) ? $locked[$this
    ->id()] : FALSE;
}