class UnstickyNode in Drupal 10
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
- 9 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
Makes a node not sticky.
Plugin annotation
@Action(
id = "node_make_unsticky_action",
label = @Translation("Make selected content not sticky"),
type = "node"
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\Core\Action\ActionBase implements ActionInterface
- class \Drupal\Core\Field\FieldUpdateActionBase
- class \Drupal\node\Plugin\Action\UnstickyNode
- class \Drupal\Core\Field\FieldUpdateActionBase
- class \Drupal\Core\Action\ActionBase implements ActionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
Expanded class hierarchy of UnstickyNode
File
- core/
modules/ node/ src/ Plugin/ Action/ UnstickyNode.php, line 17
Namespace
Drupal\node\Plugin\ActionView source
class UnstickyNode extends FieldUpdateActionBase {
/**
* {@inheritdoc}
*/
protected function getFieldsToUpdate() {
return [
'sticky' => NodeInterface::NOT_STICKY,
];
}
}