You are here

class LegacySetPublishingDate in Scheduler 2.x

Provides the 'Set date for scheduled unpublishing' action just for nodes.

Plugin annotation


@RulesAction(
  id = "scheduler_set_publishing_date_action",
  entity_type_id = "node",
  label = @Translation("Set date for publishing a content item"),
  category = @Translation("Content (Scheduler)"),
  context_definitions = {
    "node" = @ContextDefinition("entity:node",
      label = @Translation("Node for scheduling"),
      description = @Translation("The node which is to have a scheduled publishing date set"),
      assignment_restriction = "selector",
    ),
    "date" = @ContextDefinition("timestamp",
      label = @Translation("The date for publishing"),
      description = @Translation("The date when Scheduler will publish the node"),
    )
  }
)

Hierarchy

Expanded class hierarchy of LegacySetPublishingDate

File

scheduler_rules_integration/src/Plugin/RulesAction/Legacy/LegacySetPublishingDate.php, line 28

Namespace

Drupal\scheduler_rules_integration\Plugin\RulesAction\Legacy
View source
class LegacySetPublishingDate extends SetPublishingDate {

}

Members

Namesort descending Modifiers Type Description Overrides
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.
SetPublishingDate::doExecute public function Set the publish_on date on the entity.