3 namespace Drupal\node\Plugin\Action;
5 use Drupal\Core\Field\FieldUpdateActionBase;
6 use Drupal\node\NodeInterface;
12 * id = "node_make_sticky_action",
13 * label = @Translation("Make selected content sticky"),
17 class StickyNode extends FieldUpdateActionBase {
22 protected function getFieldsToUpdate() {
23 return ['sticky' => NodeInterface::STICKY];