class LegacyUnpublishingIsEnabled in Scheduler 2.x
Provides 'Unpublishing is enabled' condition for nodes only.
Plugin annotation
@Condition(
id = "scheduler_condition_unpublishing_is_enabled",
label = @Translation("Node type is enabled for scheduled unpublishing"),
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 unpublishing."),
assignment_restriction = "selector",
)
}
)
Hierarchy
- class \Drupal\scheduler_rules_integration\Plugin\Condition\UnpublishingIsEnabled extends \Drupal\rules\Core\RulesConditionBase
- class \Drupal\scheduler_rules_integration\Plugin\Condition\Legacy\LegacyUnpublishingIsEnabled
Expanded class hierarchy of LegacyUnpublishingIsEnabled
File
- scheduler_rules_integration/
src/ Plugin/ Condition/ Legacy/ LegacyUnpublishingIsEnabled.php, line 23
Namespace
Drupal\scheduler_rules_integration\Plugin\Condition\LegacyView source
class LegacyUnpublishingIsEnabled extends UnpublishingIsEnabled {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UnpublishingIsEnabled:: |
public | function | Determines whether scheduled unpublishing is enabled for this entity type. |