UnpublishByKeywordNode.php

Same filename in this branch
  1. 10 core/modules/action/src/Plugin/Action/UnpublishByKeywordNode.php
Same filename in other branches
  1. 9 core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php
  2. 8.9.x core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php
  3. 11.x core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php

Namespace

Drupal\node\Plugin\Action

File

core/modules/node/src/Plugin/Action/UnpublishByKeywordNode.php

View source
<?php

namespace Drupal\node\Plugin\Action;

use Drupal\action\Plugin\Action\UnpublishByKeywordNode as ActionUnpublishByKeywordNode;

/**
 * Unpublishes a node containing certain keywords.
 *
 * @deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use
 * \Drupal\action\Plugin\Action\UnpublishByKeywordNode instead.
 *
 * @see https://www.drupal.org/node/3424506
 */
class UnpublishByKeywordNode extends ActionUnpublishByKeywordNode {
    
    /**
     * {@inheritdoc}
     */
    public function __construct(array $configuration, $plugin_id, $plugin_definition) {
        @trigger_error(__CLASS__ . ' is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\action\\Plugin\\Action\\UnpublishByKeywordNode instead. See https://www.drupal.org/node/3424506', E_USER_DEPRECATED);
        parent::__construct($configuration, $plugin_id, $plugin_definition);
    }

}

Classes

Title Deprecated Summary
UnpublishByKeywordNode

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\action\Plugin\Action\UnpublishByKeywordNode instead.

Unpublishes a node containing certain keywords.

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