function UnstickyNode::getFieldsToUpdate

Same name in other branches
  1. 9 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode::getFieldsToUpdate()
  2. 8.9.x core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode::getFieldsToUpdate()
  3. 10 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode::getFieldsToUpdate()

Overrides FieldUpdateActionBase::getFieldsToUpdate

File

core/modules/node/src/Plugin/Action/UnstickyNode.php, line 23

Class

UnstickyNode
Makes a node not sticky.

Namespace

Drupal\node\Plugin\Action

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.