You are here

class LegacyRemovePublishingDate in Scheduler 2.x

Provides a 'Remove date for scheduled publishing' action, for nodes only.

Plugin annotation


@RulesAction(
  id = "scheduler_remove_publishing_date_action",
  entity_type_id = "node",
  label = @Translation("Remove date for publishing a content item"),
  category = @Translation("Content (Scheduler)"),
  context_definitions = {
    "node" = @ContextDefinition("entity:node",
      label = @Translation("Node"),
      description = @Translation("The node from which to remove the scheduled publishing date"),
      assignment_restriction = "selector",
    ),
  }
)

Hierarchy

Expanded class hierarchy of LegacyRemovePublishingDate

File

scheduler_rules_integration/src/Plugin/RulesAction/Legacy/LegacyRemovePublishingDate.php, line 24

Namespace

Drupal\scheduler_rules_integration\Plugin\RulesAction\Legacy
View source
class LegacyRemovePublishingDate extends RemovePublishingDate {

}

Members

Namesort descending Modifiers Type Description Overrides
RemovePublishingDate::doExecute public function Remove the publish_on date from the entity.
SchedulerRulesActionBase::$entityTypeId protected property The entity type id.
SchedulerRulesActionBase::create public static function
SchedulerRulesActionBase::notEnabledWarning public function Gives a warning when an entity is not enabled for Scheduler.
SchedulerRulesActionBase::__construct public function Constructs a SchedulerRulesActionBase object.