1.20.x block.class.inc Block::checkAccess()

Check if this block should be shown based on current contexts.

File

modules/layout/includes/block.class.inc, line 383
A class that wraps around a block to store settings information.

Class

Block
@file A class that wraps around a block to store settings information.

Code

function checkAccess() {
  foreach ($this->conditions as $condition) {
    if (!$condition->checkAccess()) {
      return FALSE;
    }
  }
  return TRUE;
}