NodeStorageInterface::updateType

public NodeStorageInterface::updateType($old_type, $new_type)

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.

File

core/modules/node/src/NodeStorageInterface.php, line 58

Class

NodeStorageInterface
Defines an interface for node entity storage classes.

Namespace

Drupal\node

Code

public function updateType($old_type, $new_type);
doc_Drupal
2016-10-29 09:31:20
Comments
Leave a Comment

Please login to continue.