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