Same name and namespace in other branches
- 8.9.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::id()
- 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::id()
Gets the identifier.
Return value
string|int|null The entity identifier, or NULL if the object does not yet have an identifier.
Overrides EntityBase::id
2 calls to NodeType::id()
- NodeType::isLocked in core/
modules/ node/ src/ Entity/ NodeType.php - Determines whether the node type is locked.
- NodeType::postSave in core/
modules/ node/ src/ Entity/ NodeType.php - Acts on a saved entity before the insert or update hook is invoked.
File
- core/
modules/ node/ src/ Entity/ NodeType.php, line 116
Class
- NodeType
- Defines the Node type configuration entity.
Namespace
Drupal\node\EntityCode
public function id() {
return $this->type;
}