protected function ViewExecutable::_initHandler in Views (for Drupal 7) 8.3
Attach all of the handlers for each type.
Parameters
$key: One of 'argument', 'field', 'sort', 'filter', 'relationship'
$info: The $info from viewsHandlerTypes for this object.
1 call to ViewExecutable::_initHandler()
- ViewExecutable::initHandlers in lib/
Drupal/ views/ ViewExecutable.php  - Acquire and attach all of the handlers.
 
File
- lib/
Drupal/ views/ ViewExecutable.php, line 801  - Definition of Drupal\views\ViewExecutable.
 
Class
- ViewExecutable
 - An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.
 
Namespace
Drupal\viewsCode
protected function _initHandler($key, $info) {
  // Load the requested items from the display onto the object.
  $this->{$key} = $this->display_handler
    ->getHandlers($key);
  // This reference deals with difficult PHP indirection.
  $handlers =& $this->{$key};
  // Run through and test for accessibility.
  foreach ($handlers as $id => $handler) {
    if (!$handler
      ->access()) {
      unset($handlers[$id]);
    }
  }
}