Skip to content

Commit

Permalink
Merge pull request #129 from localgovdrupal/fix/2.x/replace-and
Browse files Browse the repository at this point in the history
fix: replace "and" with "&&" and "or" with "||"
  • Loading branch information
finnlewis authored Oct 2, 2023
2 parents dcaa359 + 0f99c84 commit 352862e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Plugin/Block/SubsitesAbstractBlockBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ protected function getSubsiteBanner() {
*/
protected function blockAccess(AccountInterface $account) {
$this->node = $this->getContextValue('node');
if ($this->node and
($this->node->bundle() == 'localgov_subsites_overview' or $this->node->bundle() == 'localgov_subsites_page')
if ($this->node &&
($this->node->bundle() == 'localgov_subsites_overview' || $this->node->bundle() == 'localgov_subsites_page')
) {
return AccessResult::allowed();
}
Expand Down

0 comments on commit 352862e

Please sign in to comment.