Loading scheduler_rules_integration/src/Event/RulesCommerceProductEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -33,9 +33,9 @@ class RulesCommerceProductEvent extends EventBase { * be done, but when editing a rule we get commerceproduct in the drop-downs, * whereas all other usages in the Rules forms have commerce_product. This is * confusing for the admin/developer who has to select from this list when * editing a rule. There keep the property name matching the entity type id * prevent Coder from reporting the invalid name by disabling this specific * sniff for this file only. * editing a rule. Therefore keep the property name matching the entity type * id and prevent Coder from reporting the invalid name by disabling this * specific sniff for this file only. * * phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerCamelName * Loading src/Event/SchedulerCommerceProductEvents.php +7 −7 Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ namespace Drupal\scheduler\Event; /** * Lists the six events dispatched by Scheduler for commerce_product entities. * Lists the six events dispatched by Scheduler for Commerce Product entities. */ final class SchedulerCommerceProductEvents { /** * The event triggered after a commerce_product item is published immediately. * The event triggered after a commerce product is published immediately. * * This event allows modules to react after an entity is published * immediately when being saved after editing. The event listener method Loading @@ -23,7 +23,7 @@ final class SchedulerCommerceProductEvents { const PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_publish_immediately'; /** * The event triggered after a commerce_product item is published by cron. * The event triggered after a commerce product is published by cron. * * This event allows modules to react after an entity is published by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -37,7 +37,7 @@ final class SchedulerCommerceProductEvents { const PUBLISH = 'scheduler.commerce_product_publish'; /** * The event triggered before a commerce_product is published immediately. * The event triggered before a commerce product is published immediately. * * This event allows modules to react before an entity is published * immediately when being saved after editing. The event listener method Loading @@ -52,7 +52,7 @@ final class SchedulerCommerceProductEvents { const PRE_PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_pre_publish_immediately'; /** * The event triggered before a commerce_product item is published by cron. * The event triggered before a commerce product is published by cron. * * This event allows modules to react before an entity is published by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -66,7 +66,7 @@ final class SchedulerCommerceProductEvents { const PRE_PUBLISH = 'scheduler.commerce_product_pre_publish'; /** * The event triggered before a commerce_product item is unpublished by cron. * The event triggered before a commerce product is unpublished by cron. * * This event allows modules to react before an entity is unpublished by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -80,7 +80,7 @@ final class SchedulerCommerceProductEvents { const PRE_UNPUBLISH = 'scheduler.commerce_product_pre_unpublish'; /** * The event triggered after a commerce_product item is unpublished by cron. * The event triggered after a commerce product is unpublished by cron. * * This event allows modules to react after an entity is unpublished by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading src/Event/SchedulerNodeEvents.php +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ namespace Drupal\scheduler\Event; * Lists the six events dispatched by Scheduler relating to Node entities. * * The event names here are the original six, when only nodes were supported. * See SchedulerMediaEvents for the generic naming convention to follow for any * new entity plugin implementations. * See SchedulerTaxonomyTermEvents for the generic naming convention to follow * for any new entity plugin implementations. */ final class SchedulerNodeEvents { Loading src/Event/SchedulerTaxonomyTermEvents.php +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ final class SchedulerTaxonomyTermEvents { const PUBLISH = 'scheduler.taxonomy_term_publish'; /** * The event triggered before a taxonomy_term is published immediately. * The event triggered before a taxonomy term is published immediately. * * This event allows modules to react before an entity is published * immediately when being saved after editing. The event listener method Loading src/Plugin/Validation/Constraint/SchedulerUnpublishOnConstraint.php +2 −2 Original line number Diff line number Diff line Loading @@ -23,11 +23,11 @@ class SchedulerUnpublishOnConstraint extends CompositeConstraintBase { public $messageUnpublishOnRequiredIfPublishOnEntered = "If you set a 'publish on' date then you must also set an 'unpublish on' date."; /** * Message shown when unpublish_on is missing but node is published directly. * Message shown when unpublish_on is missing but trying to save as published. * * @var string */ public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save this node as unpublished."; public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save as unpublished."; /** * Message shown when unpublish_on is not in the future. Loading Loading
scheduler_rules_integration/src/Event/RulesCommerceProductEvent.php +3 −3 Original line number Diff line number Diff line Loading @@ -33,9 +33,9 @@ class RulesCommerceProductEvent extends EventBase { * be done, but when editing a rule we get commerceproduct in the drop-downs, * whereas all other usages in the Rules forms have commerce_product. This is * confusing for the admin/developer who has to select from this list when * editing a rule. There keep the property name matching the entity type id * prevent Coder from reporting the invalid name by disabling this specific * sniff for this file only. * editing a rule. Therefore keep the property name matching the entity type * id and prevent Coder from reporting the invalid name by disabling this * specific sniff for this file only. * * phpcs:disable Drupal.NamingConventions.ValidVariableName.LowerCamelName * Loading
src/Event/SchedulerCommerceProductEvents.php +7 −7 Original line number Diff line number Diff line Loading @@ -3,12 +3,12 @@ namespace Drupal\scheduler\Event; /** * Lists the six events dispatched by Scheduler for commerce_product entities. * Lists the six events dispatched by Scheduler for Commerce Product entities. */ final class SchedulerCommerceProductEvents { /** * The event triggered after a commerce_product item is published immediately. * The event triggered after a commerce product is published immediately. * * This event allows modules to react after an entity is published * immediately when being saved after editing. The event listener method Loading @@ -23,7 +23,7 @@ final class SchedulerCommerceProductEvents { const PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_publish_immediately'; /** * The event triggered after a commerce_product item is published by cron. * The event triggered after a commerce product is published by cron. * * This event allows modules to react after an entity is published by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -37,7 +37,7 @@ final class SchedulerCommerceProductEvents { const PUBLISH = 'scheduler.commerce_product_publish'; /** * The event triggered before a commerce_product is published immediately. * The event triggered before a commerce product is published immediately. * * This event allows modules to react before an entity is published * immediately when being saved after editing. The event listener method Loading @@ -52,7 +52,7 @@ final class SchedulerCommerceProductEvents { const PRE_PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_pre_publish_immediately'; /** * The event triggered before a commerce_product item is published by cron. * The event triggered before a commerce product is published by cron. * * This event allows modules to react before an entity is published by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -66,7 +66,7 @@ final class SchedulerCommerceProductEvents { const PRE_PUBLISH = 'scheduler.commerce_product_pre_publish'; /** * The event triggered before a commerce_product item is unpublished by cron. * The event triggered before a commerce product is unpublished by cron. * * This event allows modules to react before an entity is unpublished by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading @@ -80,7 +80,7 @@ final class SchedulerCommerceProductEvents { const PRE_UNPUBLISH = 'scheduler.commerce_product_pre_unpublish'; /** * The event triggered after a commerce_product item is unpublished by cron. * The event triggered after a commerce product is unpublished by cron. * * This event allows modules to react after an entity is unpublished by Cron. * The event listener receives a \Drupal\Core\Entity\EntityInterface instance. Loading
src/Event/SchedulerNodeEvents.php +2 −2 Original line number Diff line number Diff line Loading @@ -6,8 +6,8 @@ namespace Drupal\scheduler\Event; * Lists the six events dispatched by Scheduler relating to Node entities. * * The event names here are the original six, when only nodes were supported. * See SchedulerMediaEvents for the generic naming convention to follow for any * new entity plugin implementations. * See SchedulerTaxonomyTermEvents for the generic naming convention to follow * for any new entity plugin implementations. */ final class SchedulerNodeEvents { Loading
src/Event/SchedulerTaxonomyTermEvents.php +1 −1 Original line number Diff line number Diff line Loading @@ -37,7 +37,7 @@ final class SchedulerTaxonomyTermEvents { const PUBLISH = 'scheduler.taxonomy_term_publish'; /** * The event triggered before a taxonomy_term is published immediately. * The event triggered before a taxonomy term is published immediately. * * This event allows modules to react before an entity is published * immediately when being saved after editing. The event listener method Loading
src/Plugin/Validation/Constraint/SchedulerUnpublishOnConstraint.php +2 −2 Original line number Diff line number Diff line Loading @@ -23,11 +23,11 @@ class SchedulerUnpublishOnConstraint extends CompositeConstraintBase { public $messageUnpublishOnRequiredIfPublishOnEntered = "If you set a 'publish on' date then you must also set an 'unpublish on' date."; /** * Message shown when unpublish_on is missing but node is published directly. * Message shown when unpublish_on is missing but trying to save as published. * * @var string */ public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save this node as unpublished."; public $messageUnpublishOnRequiredIfPublishing = "Either you must set an 'unpublish on' date or save as unpublished."; /** * Message shown when unpublish_on is not in the future. Loading