class UnstickyNode

Same name and namespace in other branches
  1. 11.x core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
  2. 10 core/modules/node/src/Plugin/Action/UnstickyNode.php \Drupal\node\Plugin\Action\UnstickyNode
  3. 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

Expanded class hierarchy of UnstickyNode

File

core/modules/node/src/Plugin/Action/UnstickyNode.php, line 17

Namespace

Drupal\node\Plugin\Action
View source
class UnstickyNode extends FieldUpdateActionBase {
  
  /**
   * {@inheritdoc}
   */
  protected function getFieldsToUpdate() {
    return [
      'sticky' => NodeInterface::NOT_STICKY,
    ];
  }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ActionBase::executeMultiple public function
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function
DependencySerializationTrait::__wakeup public function #[\ReturnTypeWillChange]
FieldUpdateActionBase::access public function
FieldUpdateActionBase::execute public function
MessengerTrait::$messenger protected property The messenger.
MessengerTrait::messenger public function Gets the messenger.
MessengerTrait::setMessenger public function Sets the messenger.
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition.
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function
PluginBase::getDerivativeId public function
PluginBase::getPluginDefinition public function
PluginBase::getPluginId public function
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 15
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 15
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 15
StringTranslationTrait::$stringTranslation protected property The string translation service.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
UnstickyNode::getFieldsToUpdate protected function Gets an array of values to be set. Overrides FieldUpdateActionBase::getFieldsToUpdate

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.