function NodeType::id

Same name and namespace in other branches
  1. 9 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::id()
  2. 8.9.x core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::id()
  3. 10 core/modules/node/src/Entity/NodeType.php \Drupal\node\Entity\NodeType::id()

Overrides EntityBase::id

1 call to NodeType::id()
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\Entity

Code

public function id() {
    return $this->type;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.