1 block.class.inc Block::checkAccess()

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

File

core/modules/layout/includes/block.class.inc, line 404
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;
}