icon = ['image' => 'b_index', 'title' => __('Indexes')]; $this->links = [ 'text' => ['route' => '/table/structure', 'params' => ['db' => null, 'table' => null]], 'icon' => ['route' => '/table/structure', 'params' => ['db' => null, 'table' => null]], ]; $this->realName = 'indexes'; $newLabel = _pgettext('Create new index', 'New'); $new = NodeFactory::getInstanceForNewNode($newLabel, 'new_index italics'); $new->icon = ['image' => 'b_index_add', 'title' => $newLabel]; $new->links = [ 'text' => [ 'route' => '/table/indexes', 'params' => ['create_index' => 1, 'added_fields' => 2, 'db' => null, 'table' => null], ], 'icon' => [ 'route' => '/table/indexes', 'params' => ['create_index' => 1, 'added_fields' => 2, 'db' => null, 'table' => null], ], ]; $this->addChild($new); } }