function views_plugin_display_block::get_cache_type

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

2 calls to views_plugin_display_block::get_cache_type()
views_plugin_display_block::execute_hook_block_list in plugins/views_plugin_display_block.inc
The default block handler doesn't support configurable items, but extended block handlers might be able to do interesting stuff with it.
views_plugin_display_block::options_form in plugins/views_plugin_display_block.inc
Provide the default form for setting options.

File

plugins/views_plugin_display_block.inc, line 122

Class

views_plugin_display_block
The plugin that handles a block.

Code

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