You are here

public function EckEntityBundle::isLocked in Entity Construction Kit (ECK) 8

Determines whether the entity is locked.

Return value

string|false The module name that locks the type or FALSE.

Overrides EckEntityBundleInterface::isLocked

File

src/Entity/EckEntityBundle.php, line 116

Class

EckEntityBundle
Defines the ECK entity bundle configuration entity.

Namespace

Drupal\eck\Entity

Code

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