'Sharing', 'section' => 'Visitors', 'route' => Names::route('sharing.index'), 'permission' => 'sharing.view']]; } /** @return array> what the settings screen can change */ public function settings(): array { return [ 'manager.sharing.live' => ['label' => 'Post for real', 'type' => 'toggle', 'group' => 'Sharing', 'help' => 'Off: a share is written down as a dry run and nothing is sent. Keep it off on a test site.', 'env' => 'MANAGER_SHARING_LIVE'], 'manager.sharing.post_url' => ['label' => 'Address of a post', 'type' => 'url', 'group' => 'Sharing', 'sensitive' => true, 'help' => 'Where a post lives on the site, with {slug} for its address, for example https://example.test/blog/{slug}', 'env' => 'MANAGER_SHARING_POST_URL'], 'manager.sharing.linkedin.client_id' => ['label' => 'LinkedIn: client id', 'type' => 'text', 'group' => 'Sharing', 'sensitive' => true, 'env' => 'MANAGER_LINKEDIN_CLIENT_ID'], 'manager.sharing.linkedin.client_secret' => ['label' => 'LinkedIn: client secret', 'type' => 'secret', 'group' => 'Sharing', 'env' => 'MANAGER_LINKEDIN_CLIENT_SECRET'], ]; } public function actions(): array { return [ 'sharing.connect' => ['Went to a social network to connect an account'], 'sharing.callback' => ['Connected an account of a social network'], 'sharing.disconnect' => ['Disconnected an account of a social network'], 'sharing.share' => ['Shared a post on a social network'], ]; } public function views(): array { return ['sharing.index' => 'Opened the sharing screen', 'sharing.post' => 'Opened how a post is shared']; } }