protected function Block::blockCachingModes

Provide a list of core's block caching modes.

2 calls to Block::blockCachingModes()
Block::buildOptionsForm in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Provide the default form for setting options.
Block::optionsSummary in drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php
Provide the summary for page options in the views UI.

File

drupal/core/modules/block/lib/Drupal/block/Plugin/views/display/Block.php, line 99
Definition of Drupal\views\Plugin\views\display\Block. Definition of Drupal\block\Plugin\views\display\Block.

Class

Block
The plugin that handles a block.

Namespace

Drupal\block\Plugin\views\display

Code

protected function blockCachingModes() {
  return array(
    DRUPAL_NO_CACHE => t('Do not cache'),
    DRUPAL_CACHE_GLOBAL => t('Cache once for everything (global)'),
    DRUPAL_CACHE_PER_PAGE => t('Per page'),
    DRUPAL_CACHE_PER_ROLE => t('Per role'),
    DRUPAL_CACHE_PER_ROLE | DRUPAL_CACHE_PER_PAGE => t('Per role per page'),
    DRUPAL_CACHE_PER_USER => t('Per user'),
    DRUPAL_CACHE_PER_USER | DRUPAL_CACHE_PER_PAGE => t('Per user per page'),
  );
}