public function DisplayPluginBase::getHandler

Get the handler object for a single handler.

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/display/DisplayPluginBase.php, line 799
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 &getHandler($type, $id) {
  if (!isset($this->handlers[$type])) {
    $this
      ->getHandlers($type);
  }
  if (isset($this->handlers[$type][$id])) {
    return $this->handlers[$type][$id];
  }

  // So we can return a reference.
  $null = NULL;
  return $null;
}