1 views_plugin_display_block.inc views_plugin_display_block::get_cache_type()

Provide a single method to figure caching type, keeping a sensible default for when it's unset.

File

core/modules/views/plugins/views_plugin_display_block.inc, line 215
Contains the block display plugin.

Class

views_plugin_display_block
The plugin that handles a block.

Code

function get_cache_type() {
  $cache_type = $this->get_option('block_caching');
  if (empty($cache_type)) {
    $cache_type = BACKDROP_NO_CACHE;
  }
  return $cache_type;
}