public function DisplayPluginBase::isEnabled

Whether the display is enabled.

Return value

bool Returns TRUE if the display is marked as enabled, else FALSE.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 261
Contains Drupal\views\Plugin\views\display\DisplayPluginBase.

Class

DisplayPluginBase
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Namespace

Drupal\views\Plugin\views\display

Code

public function isEnabled() {
  return (bool) $this
    ->getOption('enabled');
}