class PromoteNode
Same name in other branches
- 9 core/modules/node/src/Plugin/Action/PromoteNode.php \Drupal\node\Plugin\Action\PromoteNode
- 8.9.x core/modules/node/src/Plugin/Action/PromoteNode.php \Drupal\node\Plugin\Action\PromoteNode
- 10 core/modules/node/src/Plugin/Action/PromoteNode.php \Drupal\node\Plugin\Action\PromoteNode
Promotes a node.
Hierarchy
- class \Drupal\node\Plugin\Action\PromoteNode extends \Drupal\Core\Field\FieldUpdateActionBase
Expanded class hierarchy of PromoteNode
File
-
core/
modules/ node/ src/ Plugin/ Action/ PromoteNode.php, line 13
Namespace
Drupal\node\Plugin\ActionView source
class PromoteNode extends FieldUpdateActionBase {
/**
* {@inheritdoc}
*/
protected function getFieldsToUpdate() {
return [
'promote' => NodeInterface::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 | 3 |
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. | 6 | |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin ID of the plugin instance. | 2 | |
PromoteNode::getFieldsToUpdate | protected | function | Overrides FieldUpdateActionBase::getFieldsToUpdate |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.