Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DemoteNode.php

function 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\Action

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal