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

Breadcrumb

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

class DemoteNode

Demotes a node.

Hierarchy

  • class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
    • class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
      • class \Drupal\Core\Action\ActionBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Action\ActionInterface
        • class \Drupal\Core\Field\FieldUpdateActionBase extends \Drupal\Core\Action\ActionBase
          • class \Drupal\node\Plugin\Action\DemoteNode extends \Drupal\Core\Field\FieldUpdateActionBase

Expanded class hierarchy of DemoteNode

File

core/modules/node/src/Plugin/Action/DemoteNode.php, line 13

Namespace

Drupal\node\Plugin\Action
View source
class DemoteNode extends FieldUpdateActionBase {
    
    /**
     * {@inheritdoc}
     */
    protected function getFieldsToUpdate() {
        return [
            'promote' => NodeInterface::NOT_PROMOTED,
        ];
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ActionBase::executeMultiple public function Executes the plugin for an array of objects. Overrides ActionInterface::executeMultiple 2
DemoteNode::getFieldsToUpdate protected function Gets an array of values to be set. Overrides FieldUpdateActionBase::getFieldsToUpdate
FieldUpdateActionBase::access public function Checks object access. Overrides ActionInterface::access
FieldUpdateActionBase::execute public function Executes the plugin. Overrides ExecutableInterface::execute
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 5
PluginInspectionInterface::getPluginId public function Gets the plugin ID of the plugin instance. 2

API Navigation

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