*/ public static function publisher(string $portalBase): array { $isPresseecho = config('app.theme') === 'presseecho'; $brand = (array) config('domains.domains.'.($isPresseecho ? 'presseecho' : 'businessportal24').'.brand', []); return [ '@type' => 'Organization', '@id' => $portalBase.'/#organization', 'name' => ($brand['name'] ?? ($isPresseecho ? 'presse' : 'businessportal')).($brand['accent'] ?? ($isPresseecho ? 'echo' : '24')), 'url' => $portalBase.'/', 'logo' => [ '@type' => 'ImageObject', 'url' => $portalBase.'/images/'.($isPresseecho ? 'presseecho-logo.svg' : 'businessportal-logo.svg'), 'width' => 600, 'height' => 200, ], ]; } public static function newsroomUrl(string $portalBase, string $slug): string { return $portalBase.'/'.app()->getLocale().'/newsroom/'.$slug; } public static function newsroomId(string $newsroomUrl): string { return $newsroomUrl.'#organization'; } }