function DemoteNode::getFieldsToUpdate
Same name in other branches
- 9 core/modules/node/src/Plugin/Action/DemoteNode.php \Drupal\node\Plugin\Action\DemoteNode::getFieldsToUpdate()
- 8.9.x core/modules/node/src/Plugin/Action/DemoteNode.php \Drupal\node\Plugin\Action\DemoteNode::getFieldsToUpdate()
- 10 core/modules/node/src/Plugin/Action/DemoteNode.php \Drupal\node\Plugin\Action\DemoteNode::getFieldsToUpdate()
Overrides FieldUpdateActionBase::getFieldsToUpdate
File
-
core/
modules/ node/ src/ Plugin/ Action/ DemoteNode.php, line 23
Class
- DemoteNode
- Demotes a node.
Namespace
Drupal\node\Plugin\ActionCode
protected function getFieldsToUpdate() {
return [
'promote' => NodeInterface::NOT_PROMOTED,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.