public function NodeStorageInterface::updateType in Drupal 8
Same name and namespace in other branches
- 9 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);