loadVars(); parent::render(); } protected function loadVars(): void { $repo = new WorkflowRepository(); $per_page = 10; $paged = max( 1, absint( Request::get( 'paged', '1' ) ) ); $offset = ( $paged - 1 ) * $per_page; $this->vars['create_url'] = HubPage::url( array( 'tab' => 'create_automation' ) ); $this->vars['workflows'] = $repo->findAllPaginated( $per_page, $offset ); $this->vars['total_items'] = $repo->count(); $this->vars['per_page'] = $per_page; $this->vars['base_url'] = HubPage::url( array( 'tab' => 'automations' ) ); } protected function getViewPath() { return AFROMEWO_PLUGIN_DIR . 'includes/Admin/Automation/Views/automations.php'; } }