function NodeType::isLocked
Same name in other branches
- 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::isLocked()
- 10 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::isLocked()
- 11.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::isLocked()
Overrides NodeTypeInterface::isLocked
File
-
core/
modules/ node/ src/ Entity/ NodeType.php, line 119
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\EntityCode
public function isLocked() {
$locked = \Drupal::state()->get('node.type.locked');
return isset($locked[$this->id()]) ? $locked[$this->id()] : FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.