class UnstickyNode
Same name in other branches
- 9 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
- 8.9.x core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
- 10 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
Makes a node not sticky.
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\UnstickyNode extends \Drupal\Core\Field\FieldUpdateActionBase
- class \Drupal\Core\Field\FieldUpdateActionBase extends \Drupal\Core\Action\ActionBase
- class \Drupal\Core\Action\ActionBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Action\ActionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of UnstickyNode
File
-
core/
modules/ node/ src/ Plugin/ Action/ UnstickyNode.php, line 13
Namespace
Drupal\node\Plugin\ActionView source
class UnstickyNode extends FieldUpdateActionBase {
/**
* {@inheritdoc}
*/
protected function getFieldsToUpdate() {
return [
'sticky' => NodeInterface::NOT_STICKY,
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ActionBase::executeMultiple | public | function | 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 | |
UnstickyNode::getFieldsToUpdate | protected | function | Gets an array of values to be set. | Overrides FieldUpdateActionBase::getFieldsToUpdate |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.