-
Notifications
You must be signed in to change notification settings - Fork 3
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
SHS-6009: Remove Visibility and Region fields from the Social Media footer block for Site Editors #1715
SHS-6009: Remove Visibility and Region fields from the Social Media footer block for Site Editors #1715
Conversation
…lopers on social media block
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.
@codechefmarc Nice work! Confirming that I no longer see these visibility regions for non-administrator roles.
@ahughes3 Functional tests pass and the code looks good to me. Kicking this over to you for confirmation. |
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.
good to go!
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.
@codechefmarc Can this be done in the block plugin itself without using a hook?
public function blockForm($form, FormStateInterface $form_state): array { |
@joegl - I looked into this and there doesn't appear to be a way to do it via the block plugin we have already. This is because the |
Nope, that works for me 👍 I'd always prefer using OOP instead of a hook in a .module file, but that's not always possible. |
Summary
When editing the social media footer block, site managers will no longer see the "Visibility" and "Region" fields. Developer roles will still see these fields.
Need Review By (Date)
2025-01-15
Urgency
low
Steps to Test
Review Tasks
Backend / Functional Validation
Code
snake_case
and notcamelCase
?Code security
General