You are here

public function ConfigEntityRevisionsType::isLocked in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::isLocked()
  2. 1.x src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::isLocked()

Determines whether the config_entity_revisions type is locked.

Return value

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

Overrides ConfigEntityRevisionsTypeInterface::isLocked

File

src/Entity/ConfigEntityRevisionsType.php, line 99

Class

ConfigEntityRevisionsType
Defines the Config Entity Revisions configuration entity.

Namespace

Drupal\config_entity_revisions\Entity

Code

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