Gets an array of handler instances for the current display.
string $type: The type of handlers to retrieve.
string $display_id: (optional) A specific display machine name to use. If NULL, the current display will be used.
array An array of handler instances of a given type for this display.
public function getItems($type, $display_id = NULL) {
$this
->setDisplay($display_id);
if (!isset($display_id)) {
$display_id = $this->current_display;
}
// Get info about the types so we can get the right data.
$types = $this::viewsHandlerTypes();
return $this->displayHandlers[$display_id]
->getOption($types[$type]['plural']);
}