You are here

protected function UnstickyNode::getFieldsToUpdate in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode::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/UnstickyNode.php, line 22

Class

UnstickyNode
Makes a node not sticky.

Namespace

Drupal\node\Plugin\Action

Code

protected function getFieldsToUpdate() {
  return [
    'sticky' => NodeInterface::NOT_STICKY,
  ];
}