protected function views_lazy_load_plugin_display_extender::isEnabled in Views Lazy Load 7
Same name and namespace in other branches
- 8 includes/views/views_lazy_load_plugin_display_extender.inc \views_lazy_load_plugin_display_extender::isEnabled()
Gets the enabled status of lazy loading.
Return value
bool TRUE if the lazy load setting is enabled otherwise FALSE.
4 calls to views_lazy_load_plugin_display_extender::isEnabled()
- views_lazy_load_plugin_display_extender::options_form in includes/
views/ views_lazy_load_plugin_display_extender.inc - Provide a form to edit options for this plugin.
- views_lazy_load_plugin_display_extender::options_summary in includes/
views/ views_lazy_load_plugin_display_extender.inc - Provide the default summary for options in the views UI.
- views_lazy_load_plugin_display_extender::options_validate in includes/
views/ views_lazy_load_plugin_display_extender.inc - Validate the options form.
- views_lazy_load_plugin_display_extender::pre_execute in includes/
views/ views_lazy_load_plugin_display_extender.inc - Set up any variables on the view prior to execution.
File
- includes/
views/ views_lazy_load_plugin_display_extender.inc, line 114 - A display extender plugin for lazy loading a view.
Class
- views_lazy_load_plugin_display_extender
- @file A display extender plugin for lazy loading a view.
Code
protected function isEnabled() {
// We check this query param which was set client side so we can reuse the
// views_ajax() function which actually does quite a lot for us.
return $this->display
->get_option('views_lazy_load_enabled') && !isset($_GET['views_lazy_load_disabled']);
}