function StickyNode::getFieldsToUpdate
Same name in other branches
- 8.9.x core/modules/node/src/Plugin/Action/StickyNode.php \Drupal\node\Plugin\Action\StickyNode::getFieldsToUpdate()
- 10 core/modules/node/src/Plugin/Action/StickyNode.php \Drupal\node\Plugin\Action\StickyNode::getFieldsToUpdate()
- 11.x core/modules/node/src/Plugin/Action/StickyNode.php \Drupal\node\Plugin\Action\StickyNode::getFieldsToUpdate()
Overrides FieldUpdateActionBase::getFieldsToUpdate
File
-
core/
modules/ node/ src/ Plugin/ Action/ StickyNode.php, line 22
Class
- StickyNode
- Makes a node sticky.
Namespace
Drupal\node\Plugin\ActionCode
protected function getFieldsToUpdate() {
return [
'sticky' => NodeInterface::STICKY,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.