You are here

class LegacyPublishingIsEnabled in Scheduler 2.x

Provides a 'Publishing is enabled' condition for nodes only.

Plugin annotation


@Condition(
  id = "scheduler_condition_publishing_is_enabled",
  label = @Translation("Node type is enabled for scheduled publishing"),
  category = @Translation("Content (Scheduler)"),
  context_definitions = {
    "node" = @ContextDefinition("entity:node",
      label = @Translation("Node"),
      description = @Translation("The node to check for the type being enabled for scheduled publishing."),
      assignment_restriction = "selector",
    )
  }
)

Hierarchy

Expanded class hierarchy of LegacyPublishingIsEnabled

File

scheduler_rules_integration/src/Plugin/Condition/Legacy/LegacyPublishingIsEnabled.php, line 23

Namespace

Drupal\scheduler_rules_integration\Plugin\Condition\Legacy
View source
class LegacyPublishingIsEnabled extends PublishingIsEnabled {

}

Members

Namesort descending Modifiers Type Description Overrides
PublishingIsEnabled::doEvaluate public function Determines whether scheduled publishing is enabled for this entity type.