Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 8.x
»
block.module
Search Drupal 8.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 8.x
Topics
Classes
Functions
Files
Namespaces
Services
Constants
Globals
Deprecated
constant BLOCK_VISIBILITY_PHP
Shows this block if the associated PHP code returns TRUE.
2 uses of BLOCK_VISIBILITY_PHP
BlockAccessController::checkAccess
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
BlockAccessController.php
Performs access checks.
BlockFormController::form
in drupal/
core/
modules/
block/
lib/
Drupal/
block/
BlockFormController.php
Overrides
\Drupal\Core\Entity\EntityFormController::form
().
File
drupal/
core/
modules/
block/
block.module
, line 44
Controls the visual building blocks a page is constructed with.
Code
const
BLOCK_VISIBILITY_PHP
=
2
;