Skip to content

Commit

Permalink
chore(SHS-6009): Fix codeclimate error as well as update comment to b…
Browse files Browse the repository at this point in the history
…e more specific
  • Loading branch information
codechefmarc committed Jan 13, 2025
1 parent 09f302a commit 8172c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docroot/modules/humsci/hs_blocks/hs_blocks.module
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function hs_blocks_form_block_form_alter(&$form, FormStateInterface $form_state)
$block_form = $form_state->getFormObject();
/** @var Drupal\block\BlockForm $block_form */
$block = $block_form->getEntity();
// Hide block visibility and region fields from non-developers.
// Hide visibility & region fields from non-developers on social media block.
if ($block instanceof Block && $block->getPluginId() == 'hs_blocks_social_media_block') {
/** @var Drupal\Entity\User $current_user */
$current_user = \Drupal::currentUser();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,6 @@ function su_humsci_profile_update_9721() {
\Drupal::service('module_installer')->uninstall([
'honeypot',
'hs_paragraphs_between',
'paragraphs_browser'
'paragraphs_browser',
]);
}

0 comments on commit 8172c97

Please sign in to comment.