protected function StickyNode::getFieldsToUpdate in Drupal 8
Same name and namespace in other branches
- 9 core/modules/node/src/Plugin/Action/StickyNode.php \Drupal\node\Plugin\Action\StickyNode::getFieldsToUpdate()
Gets an array of values to be set.
Return value
array Array of values with field names as keys.
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,
];
}