1

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

How can I achieve this?

1 Answer 1

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 and acknowledge you have read our privacy policy.

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