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

Breadcrumb

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

function 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,
    ];
}

API Navigation

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