function NodeStorageInterface::updateType
Same name in other branches
- 8.9.x core/modules/node/src/NodeStorageInterface.php \Drupal\node\NodeStorageInterface::updateType()
- 10 core/modules/node/src/NodeStorageInterface.php \Drupal\node\NodeStorageInterface::updateType()
- 11.x core/modules/node/src/NodeStorageInterface.php \Drupal\node\NodeStorageInterface::updateType()
Updates all nodes of one type to be of another type.
Parameters
string $old_type: The current node type of the nodes.
string $new_type: The new node type of the nodes.
Return value
int The number of nodes whose node type field was modified.
1 method overrides NodeStorageInterface::updateType()
- NodeStorage::updateType in core/
modules/ node/ src/ NodeStorage.php - Updates all nodes of one type to be of another type.
File
-
core/
modules/ node/ src/ NodeStorageInterface.php, line 58
Class
- NodeStorageInterface
- Defines an interface for node entity storage classes.
Namespace
Drupal\nodeCode
public function updateType($old_type, $new_type);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.