function 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 23

Class

StickyNode
Makes a node sticky.

Namespace

Drupal\node\Plugin\Action

Code

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.