moduleDataSetup->getConnection(); $table = $this->moduleDataSetup->getTable('esun_wiki_homepage'); $connection->startSetup(); if ((int) $connection->fetchOne($connection->select()->from($table, 'COUNT(*)')) === 0) { $connection->insert($table, [ 'title' => 'eSUN Wiki', 'content' => '', 'meta_title' => '', 'meta_description' => '', 'meta_keywords' => '', ]); } $connection->endSetup(); return $this; } public static function getDependencies(): array { return []; } public function getAliases(): array { return []; } }