protected function Block::blockCachingModes in Views (for Drupal 7) 8.3
Provide a list of core's block caching modes.
2 calls to Block::blockCachingModes()
- Block::buildOptionsForm in lib/
Views/ block/ Plugin/ views/ display/ Block.php - Provide the default form for setting options.
- Block::optionsSummary in lib/
Views/ block/ Plugin/ views/ display/ Block.php - Provide the summary for page options in the views UI.
File
- lib/
Views/ block/ Plugin/ views/ display/ Block.php, line 126 - Definition of Drupal\views\Plugin\views\display\Block. Definition of Views\block\Plugin\views\display\Block.
Class
- Block
- The plugin that handles a block.
Namespace
Views\block\Plugin\views\displayCode
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'),
);
}