class BlockVisibilityKind

Encapsulates the possible visibility status options of blocks as referenced in hook_block_info().

UML: BlockVisibilityKind

@author darrenkelly

Hierarchy

Expanded class hierarchy of BlockVisibilityKind

2 files declare their use of BlockVisibilityKind
DemoOfForms.php in lib/Drupal/ooe/Demo/Form/DemoOfForms.php
DemoOfForms
DemoOfPageArguments.php in lib/Drupal/ooe/Demo/Arguments/DemoOfPageArguments.php
DemoOfPageArguments

File

lib/Drupal/ooe/Block/BlockVisibilityKind.php, line 19
BlockVisibilityKind

Namespace

Drupal\ooe\Block
View source
class BlockVisibilityKind {

  /**
   * 'Show on all pages except listed pages.
   * 'pages' lists the paths where the block should not be shown.''
   */
  const NOTLISTED = BLOCK_VISIBILITY_NOTLISTED;

  /**
   * 'Show only on listed pages.
   * 'pages' lists the paths where the block should be shown.'
   */
  const LISTED = BLOCK_VISIBILITY_LISTED;

  /**
   * 'Use custom PHP code to determine visibility.
   * 'pages' gives the PHP code to use. '
   */
  const PHP = BLOCK_VISIBILITY_PHP;
}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
BlockVisibilityKind::LISTED constant 'Show only on listed pages. 'pages' lists the paths where the block should be shown.'
BlockVisibilityKind::NOTLISTED constant 'Show on all pages except listed pages. 'pages' lists the paths where the block should not be shown.''
BlockVisibilityKind::PHP constant 'Use custom PHP code to determine visibility. 'pages' gives the PHP code to use. '