class UnstickyNode
Same name and namespace in other branches
- 11.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
- 8.9.x 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 \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Action\ActionBase implements \Drupal\Core\Action\ActionInterface extends \Drupal\Core\Plugin\PluginBase
- 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 implements \Drupal\Core\Action\ActionInterface extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\Core\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait extends \Drupal\Component\Plugin\PluginBase
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,
];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.