public function ConfigEntityRevisionsType::isLocked in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/Entity/ConfigEntityRevisionsType.php \Drupal\config_entity_revisions\Entity\ConfigEntityRevisionsType::isLocked()
- 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\EntityCode
public function isLocked() {
$locked = \Drupal::state()
->get('config_entity_revisions.type.locked');
return isset($locked[$this
->id()]) ? $locked[$this
->id()] : FALSE;
}