-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue-693: Disallow scheduler on locked pages (when scheduler module is enabled) #770
base: main
Are you sure you want to change the base?
Conversation
Thanks. As tests are not running on forked PRs, can you please attach screenshots of phpstan, phpcs and phpunit executed. |
@amitaibu Please check the attached screenshots of phpstan, phpcs and phpunit commands.
|
Thanks, can you execute all tests please. |
I have fixed a phpstan test case issue in a0b8773
|
*/ | ||
function server_general_scheduler_unpublishing_allowed(NodeInterface $entity) { | ||
// Do nothing if node is not a landing page. | ||
if ($entity->bundle() !== 'landing_page') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's confirm also that entity type is node
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amitaibu I'm already passing NodeInterface
as an argument. Do we still need to explicitly check for entity type node
?
Closes #693