3 namespace Drupal\node\Plugin\Action;
5 use Drupal\Core\Field\FieldUpdateActionBase;
6 use Drupal\node\NodeInterface;
12 * id = "node_unpromote_action",
13 * label = @Translation("Demote selected content from front page"),
17 class DemoteNode extends FieldUpdateActionBase {
22 protected function getFieldsToUpdate() {
23 return ['promote' => NodeInterface::NOT_PROMOTED];