You are here

protected function PromoteNode::getFieldsToUpdate in Drupal 8

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

Class

PromoteNode
Promotes a node.

Namespace

Drupal\node\Plugin\Action

Code

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