1

I want to display a block I implemented in a module when $_SESSION['Group_id'] is set.

How can I achieve this?

0

In the block ::build() method, return an empty array() if the condition is false.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.