Node::setTitle

public Node::setTitle($title) Sets the node title. Parameters string $title: The node title. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setTitle File core/modules/node/src/Entity/Node.php, line 195 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setTitle($title) { $this->set('title', $title); return $this; }

Node::setSticky

public Node::setSticky($sticky) Sets the node sticky status. Parameters bool $sticky: TRUE to set this node to sticky, FALSE to set it to not sticky. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setSticky File core/modules/node/src/Entity/Node.php, line 241 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setSticky($sticky) { $this->set('sticky', $sticky ? NODE_STICKY : NODE_NOT_STICKY); ret

Node::setRevisionUserId

public Node::setRevisionUserId($user_id) Sets the entity revision author by ID. Parameters int $user_id: The user ID of the revision author. Return value $this Overrides RevisionLogInterface::setRevisionUserId File core/modules/node/src/Entity/Node.php, line 345 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setRevisionUserId($user_id) { $this->set('revision_uid', $user_id); return $this; }

Node::setRevisionUser

public Node::setRevisionUser(UserInterface $user) Sets the entity revision author. Parameters \Drupal\user\UserInterface $account: The user account of the revision author. Return value $this Overrides RevisionLogInterface::setRevisionUser File core/modules/node/src/Entity/Node.php, line 330 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setRevisionUser(UserInterface $user) { $this->set('revision_uid', $user); return $this; }

Node::setRevisionLogMessage

public Node::setRevisionLogMessage($revision_log_message) Sets the entity revision log message. Parameters string $revision_log_message: The revision log message. Return value $this Overrides RevisionLogInterface::setRevisionLogMessage File core/modules/node/src/Entity/Node.php, line 360 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setRevisionLogMessage($revision_log_message) { $this->set('revision_log', $revision_log_message); re

Node::setRevisionCreationTime

public Node::setRevisionCreationTime($timestamp) Sets the node revision creation timestamp. Parameters int $timestamp: The UNIX timestamp of when this revision was created. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setRevisionCreationTime File core/modules/node/src/Entity/Node.php, line 300 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setRevisionCreationTime($timestamp) { $this->set('re

Node::setRevisionAuthorId

public Node::setRevisionAuthorId($uid) Sets the node revision author. Parameters int $uid: The user ID of the revision author. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setRevisionAuthorId Deprecated in Drupal 8.2.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Entity\RevisionLogInterface::setRevisionUserId() instead. File core/modules/node/src/Entity/Node.php, line 322 Class Node Defines the node entity class. Namespace Drupa

Node::setPublished

public Node::setPublished($published) Sets the published status of a node.. Parameters bool $published: TRUE to set this node to published, FALSE to set it to unpublished. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setPublished File core/modules/node/src/Entity/Node.php, line 255 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setPublished($published) { $this->set('status', $published ? NOD

Node::setPromoted

public Node::setPromoted($promoted) Sets the node promoted status. Parameters bool $promoted: TRUE to set this node to promoted, FALSE to set it to not promoted. Return value \Drupal\node\NodeInterface The called node entity. Overrides NodeInterface::setPromoted File core/modules/node/src/Entity/Node.php, line 226 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setPromoted($promoted) { $this->set('promote', $promoted ? NODE_PROMOTED :

Node::setOwnerId

public Node::setOwnerId($uid) Sets the entity owner's user ID. Parameters int $uid: The owner user id. Return value $this Overrides EntityOwnerInterface::setOwnerId File core/modules/node/src/Entity/Node.php, line 277 Class Node Defines the node entity class. Namespace Drupal\node\Entity Code public function setOwnerId($uid) { $this->set('uid', $uid); return $this; }