public function Node::getType in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getType()
Gets the node type.
Return value
string The node type.
Overrides NodeInterface::getType
File
- core/
modules/ node/ src/ Entity/ Node.php, line 186
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\EntityCode
public function getType() {
return $this
->bundle();
}