You are here

public function MenuChildrenNodeJoin::__construct in Views Menu Node Children Filter 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/join/MenuChildrenNodeJoin.php \Drupal\views_menu_children_filter\Plugin\views\join\MenuChildrenNodeJoin::__construct()
  2. 3.0.x src/Plugin/views/join/MenuChildrenNodeJoin.php \Drupal\views_menu_children_filter\Plugin\views\join\MenuChildrenNodeJoin::__construct()

MenuChildrenNodeJoin constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler Required to setup hook_TYPE_alter hooks so module's can alter this join.:

array $configuration:

string $plugin_id:

mixed $plugin_definition:

Overrides JoinPluginBase::__construct

File

src/Plugin/views/join/MenuChildrenNodeJoin.php, line 36

Class

MenuChildrenNodeJoin
Views Join plugin to join the Node table to the menu_tree table.

Namespace

Drupal\views_menu_children_filter\Plugin\views\join

Code

public function __construct(ModuleHandlerInterface $module_handler, array $configuration, $plugin_id, $plugin_definition) {

  // Define a hook_TYPE_alter hook for other modules to change the "prefixes" used in the SQL join.
  $module_handler
    ->alter('menu_children_filter_join_prefix', $this->prefixes);
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}