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

Breadcrumb

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

function FieldUpdateActionBase::getFieldsToUpdate

Gets an array of values to be set.

Return value

array Array of values with field names as keys.

2 calls to FieldUpdateActionBase::getFieldsToUpdate()
FieldUpdateActionBase::access in core/lib/Drupal/Core/Field/FieldUpdateActionBase.php
Checks object access.
FieldUpdateActionBase::execute in core/lib/Drupal/Core/Field/FieldUpdateActionBase.php
Executes the plugin.
4 methods override FieldUpdateActionBase::getFieldsToUpdate()
DemoteNode::getFieldsToUpdate in core/modules/node/src/Plugin/Action/DemoteNode.php
Gets an array of values to be set.
PromoteNode::getFieldsToUpdate in core/modules/node/src/Plugin/Action/PromoteNode.php
Gets an array of values to be set.
StickyNode::getFieldsToUpdate in core/modules/node/src/Plugin/Action/StickyNode.php
Gets an array of values to be set.
UnstickyNode::getFieldsToUpdate in core/modules/node/src/Plugin/Action/UnstickyNode.php
Gets an array of values to be set.

File

core/lib/Drupal/Core/Field/FieldUpdateActionBase.php, line 36

Class

FieldUpdateActionBase
Provides a base for action plugins that update one or more fields.

Namespace

Drupal\Core\Field

Code

protected abstract function getFieldsToUpdate();

API Navigation

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