function FieldUpdateActionBase::getFieldsToUpdate

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Field/FieldUpdateActionBase.php \Drupal\Core\Field\FieldUpdateActionBase::getFieldsToUpdate()
  2. 10 core/lib/Drupal/Core/Field/FieldUpdateActionBase.php \Drupal\Core\Field\FieldUpdateActionBase::getFieldsToUpdate()
  3. 11.x core/lib/Drupal/Core/Field/FieldUpdateActionBase.php \Drupal\Core\Field\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();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.