"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/content_moderation/src/Plugin/Action/ModerationOptOutPublishNode.php" (26 Nov 2020, 1318 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ModerationOptOutPublishNode.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\content_moderation\Plugin\Action;
    4 
    5 use Drupal\content_moderation\ModerationInformationInterface;
    6 use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
    7 use Drupal\Core\Entity\EntityTypeManagerInterface;
    8 
    9 /**
   10  * Alternate action plugin that can opt-out of modifying moderated entities.
   11  *
   12  * @deprecated in drupal:8.5.0 and is removed from drupal:9.0.0.
   13  *   Use \Drupal\content_moderation\Plugin\Action\ModerationOptOutPublish
   14  *   instead.
   15  *
   16  * @see \Drupal\content_moderation\Plugin\Action\ModerationOptOutPublish
   17  * @see https://www.drupal.org/node/2919303
   18  */
   19 class ModerationOptOutPublishNode extends ModerationOptOutPublish {
   20 
   21   /**
   22    * {@inheritdoc}
   23    */
   24   public function __construct($configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, ModerationInformationInterface $moderation_info, EntityTypeBundleInfoInterface $bundle_info) {
   25     parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $moderation_info, $bundle_info);
   26     @trigger_error(__NAMESPACE__ . '\ModerationOptOutPublishNode is deprecated in Drupal 8.5.x, will be removed before Drupal 9.0.0. Use \Drupal\content_moderation\Plugin\Action\ModerationOptOutPublish instead. See https://www.drupal.org/node/2919303.', E_USER_DEPRECATED);
   27   }
   28 
   29 }