diff --git a/modules/next/modules/next_jwt/src/Plugin/Next/PreviewUrlGenerator/Jwt.php b/modules/next/modules/next_jwt/src/Plugin/Next/PreviewUrlGenerator/Jwt.php index 6c2804e8..1ecf8c03 100644 --- a/modules/next/modules/next_jwt/src/Plugin/Next/PreviewUrlGenerator/Jwt.php +++ b/modules/next/modules/next_jwt/src/Plugin/Next/PreviewUrlGenerator/Jwt.php @@ -11,7 +11,6 @@ use Drupal\Core\Session\AccountProxyInterface; use Drupal\Core\Url; use Drupal\jwt\Authentication\Provider\JwtAuth; -use Drupal\next\Annotation\PreviewUrlGenerator; use Drupal\next\Entity\NextSiteInterface; use Drupal\next\Exception\InvalidPreviewUrlRequest; use Drupal\next\Plugin\ConfigurablePreviewUrlGeneratorBase; diff --git a/modules/next/next.install b/modules/next/next.install index 0afb4e60..4b94c4e7 100644 --- a/modules/next/next.install +++ b/modules/next/next.install @@ -58,7 +58,6 @@ function next_update_9103() { } } - /** * Add the revalidator, revalidate_page and revalidate_paths to next_entity_type_config. */ diff --git a/modules/next/src/Controller/NextSiteEntityController.php b/modules/next/src/Controller/NextSiteEntityController.php index 126b9a54..07fab5a7 100644 --- a/modules/next/src/Controller/NextSiteEntityController.php +++ b/modules/next/src/Controller/NextSiteEntityController.php @@ -107,7 +107,7 @@ public function environmentVariables(NextSiteInterface $next_site) { '#context' => [ 'name' => $name, 'value' => $value, - ] + ], ]; } diff --git a/modules/next/src/Controller/SitePreviewController.php b/modules/next/src/Controller/SitePreviewController.php index 16b1755a..e80b2b46 100644 --- a/modules/next/src/Controller/SitePreviewController.php +++ b/modules/next/src/Controller/SitePreviewController.php @@ -3,9 +3,9 @@ namespace Drupal\next\Controller; use Drupal\Core\Controller\ControllerBase; -use Drupal\node\Entity\Node; use Drupal\next\NextEntityTypeManager; use Drupal\next\Plugin\SitePreviewerManagerInterface; +use Drupal\node\Entity\Node; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -16,84 +16,86 @@ * removed at any time without warning. External code should not extend or * use this class in any way! */ -class SitePreviewController extends ControllerBase -{ - /** - * The next entity type manager. - * - * @var \Drupal\next\NextEntityTypeManager - */ - protected $nextEntityTypeManager; - - /** - * The site previewer manager. - * - * @var \Drupal\next\Plugin\SitePreviewerManagerInterface - */ - protected $sitePreviewerManager; - - public function __construct(NextEntityTypeManager $nextEntityTypeManager, SitePreviewerManagerInterface $sitePreviewerManager) - { - $this->nextEntityTypeManager = $nextEntityTypeManager; - $this->sitePreviewerManager = $sitePreviewerManager; - } +class SitePreviewController extends ControllerBase { + /** + * The next entity type manager. + * + * @var \Drupal\next\NextEntityTypeManager + */ + protected $nextEntityTypeManager; + + /** + * The site previewer manager. + * + * @var \Drupal\next\Plugin\SitePreviewerManagerInterface + */ + protected $sitePreviewerManager; - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container) - { - return new static( - $container->get('next.entity_type.manager'), - $container->get('plugin.manager.next.site_previewer') + /** + * + */ + public function __construct(NextEntityTypeManager $nextEntityTypeManager, SitePreviewerManagerInterface $sitePreviewerManager) { + $this->nextEntityTypeManager = $nextEntityTypeManager; + $this->sitePreviewerManager = $sitePreviewerManager; + } + + /** + * {@inheritdoc} + */ + public static function create(ContainerInterface $container) { + return new static( + $container->get('next.entity_type.manager'), + $container->get('plugin.manager.next.site_previewer') ); - } + } + + /** + * Displays the node title for preview. + * + * @param \Drupal\node\Entity\Node $node + * [description]. + * + * @return string [description]. + */ + public function nodePreviewTitle(Node $node) { + return 'Preview: ' . $node->getTitle(); + } - /** - * Displays the node title for preview. - * @param Node $node [description] - * @return string [description] - */ - public function nodePreviewTitle(Node $node) - { - return 'Preview: ' . $node->getTitle(); + /** + * Displays the next.js site preview of a node. + */ + public function nodePreview(Node $node) { + $storage = \Drupal::entityTypeManager()->getStorage($node->getEntityTypeId()); + $revision = $storage->loadRevision($storage->getLatestRevisionId($node->id())); + + $next_entity_type_config = $this->nextEntityTypeManager->getConfigForEntityType($revision->getEntityTypeId(), $revision->bundle()); + $sites = $next_entity_type_config->getSiteResolver()->getSitesForEntity($revision); + if (!count($sites)) { + throw new \Exception('Next.js sites for the entity could not be resolved.'); } - /** - * Displays the next.js site preview of a node. - */ - public function nodePreview(Node $node) - { - $storage = \Drupal::entityTypeManager()->getStorage($node->getEntityTypeId()); - $revision = $storage->loadRevision($storage->getLatestRevisionId($node->id())); - - $next_entity_type_config = $this->nextEntityTypeManager->getConfigForEntityType($revision->getEntityTypeId(), $revision->bundle()); - $sites = $next_entity_type_config->getSiteResolver()->getSitesForEntity($revision); - if (!count($sites)) { - throw new \Exception('Next.js sites for the entity could not be resolved.'); - } - - $config = $this->config('next.settings'); - $site_previewer_id = $config->get('site_previewer') ?? 'iframe'; - - /** @var \Drupal\next\Plugin\SitePreviewerInterface $site_previewer */ - $site_previewer = $this->sitePreviewerManager->createInstance($site_previewer_id, $config->get('site_previewer_configuration') ?? []); - if (!$site_previewer) { - throw new PluginNotFoundException('Invalid site previewer.'); - } - - // Build preview. - $preview = $site_previewer->render($revision, $sites); - - $context = [ - 'plugin' => $site_previewer, - 'entity' => $revision, - 'sites' => $sites, - ]; - - // Allow modules to alter the preview. - $this->moduleHandler()->alter('next_site_preview', $preview, $context); - - return $preview; + $config = $this->config('next.settings'); + $site_previewer_id = $config->get('site_previewer') ?? 'iframe'; + + /** @var \Drupal\next\Plugin\SitePreviewerInterface $site_previewer */ + $site_previewer = $this->sitePreviewerManager->createInstance($site_previewer_id, $config->get('site_previewer_configuration') ?? []); + if (!$site_previewer) { + throw new PluginNotFoundException('Invalid site previewer.'); } + + // Build preview. + $preview = $site_previewer->render($revision, $sites); + + $context = [ + 'plugin' => $site_previewer, + 'entity' => $revision, + 'sites' => $sites, + ]; + + // Allow modules to alter the preview. + $this->moduleHandler()->alter('next_site_preview', $preview, $context); + + return $preview; + } + } diff --git a/modules/next/src/Entity/NextEntityTypeConfig.php b/modules/next/src/Entity/NextEntityTypeConfig.php index 89c2e194..c6284c17 100644 --- a/modules/next/src/Entity/NextEntityTypeConfig.php +++ b/modules/next/src/Entity/NextEntityTypeConfig.php @@ -3,7 +3,6 @@ namespace Drupal\next\Entity; use Drupal\Core\Config\Entity\ConfigEntityBase; -use Drupal\Core\Entity\EntityInterface; use Drupal\next\Plugin\RevalidatorInterface; use Drupal\next\Plugin\SiteResolverInterface; use Drupal\next\RevalidatorPluginCollection; diff --git a/modules/next/src/Entity/NextEntityTypeConfigInterface.php b/modules/next/src/Entity/NextEntityTypeConfigInterface.php index ef4d8b57..213c31c2 100644 --- a/modules/next/src/Entity/NextEntityTypeConfigInterface.php +++ b/modules/next/src/Entity/NextEntityTypeConfigInterface.php @@ -3,12 +3,9 @@ namespace Drupal\next\Entity; use Drupal\Core\Config\Entity\ConfigEntityInterface; -use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityWithPluginCollectionInterface; use Drupal\next\Plugin\RevalidatorInterface; use Drupal\next\Plugin\SiteResolverInterface; -use Drupal\next\RevalidatorPluginCollection; -use Drupal\next\SiteResolverPluginCollection; /** * Provides an interface for next_entity_type_config entity definitions. diff --git a/modules/next/src/Entity/NextSite.php b/modules/next/src/Entity/NextSite.php index c4565841..16537b28 100644 --- a/modules/next/src/Entity/NextSite.php +++ b/modules/next/src/Entity/NextSite.php @@ -211,7 +211,7 @@ public function getPreviewUrlForEntity(EntityInterface $entity): Url { $resource_version = $rel ? "rel:$rel" : "id:{$entity->getRevisionId()}"; } - // TODO: Extract this to a service. + // @todo Extract this to a service. /** @var \Drupal\next\NextSettingsManagerInterface $next_settings */ $next_settings = \Drupal::service('next.settings.manager'); $preview_url_generator = $next_settings->getPreviewUrlGenerator(); diff --git a/modules/next/src/Event/EntityRevalidatedEvent.php b/modules/next/src/Event/EntityRevalidatedEvent.php index e65d0ffd..688c0b90 100644 --- a/modules/next/src/Event/EntityRevalidatedEvent.php +++ b/modules/next/src/Event/EntityRevalidatedEvent.php @@ -2,8 +2,6 @@ namespace Drupal\next\Event; -use Drupal\Core\Entity\EntityInterface; - /** * Defines an entity revalidated event. * diff --git a/modules/next/src/Form/NextSettingsForm.php b/modules/next/src/Form/NextSettingsForm.php index 9c8c1bea..d44da020 100644 --- a/modules/next/src/Form/NextSettingsForm.php +++ b/modules/next/src/Form/NextSettingsForm.php @@ -6,10 +6,10 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\SubformState; -use Drupal\next\Plugin\ConfigurableSitePreviewerInterface; use Drupal\next\Plugin\ConfigurablePreviewUrlGeneratorInterface; -use Drupal\next\Plugin\SitePreviewerManagerInterface; +use Drupal\next\Plugin\ConfigurableSitePreviewerInterface; use Drupal\next\Plugin\PreviewUrlGeneratorManagerInterface; +use Drupal\next\Plugin\SitePreviewerManagerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/modules/next/src/NextEntityTypeManager.php b/modules/next/src/NextEntityTypeManager.php index e7aa8c31..4b61940e 100644 --- a/modules/next/src/NextEntityTypeManager.php +++ b/modules/next/src/NextEntityTypeManager.php @@ -65,7 +65,7 @@ public function getConfigEntityTypeIds() { public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?EntityInterface { $entity_types_ids = $this->getConfigEntityTypeIds(); - // TODO: Handle all revisionable entity types. + // @todo Handle all revisionable entity types. $revision_routes = ['entity.node.revision', 'entity.node.latest_version']; if (in_array($route_match->getRouteName(), $revision_routes) && in_array('node', $entity_types_ids)) { $node_revision = $route_match->getParameter('node_revision'); @@ -94,7 +94,7 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti */ public function isEntityRevisionable(EntityInterface $entity): bool { if (\Drupal::hasService('jsonapi.resource_type.repository')) { - /* @var \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository */ + /** @var \Drupal\jsonapi\ResourceType\ResourceTypeRepositoryInterface $resource_type_repository */ $resource_type_repository = \Drupal::service('jsonapi.resource_type.repository'); $resource = $resource_type_repository->get($entity->getEntityTypeId(), $entity->bundle()); return $resource->isVersionable() && $entity->getEntityType()->isRevisionable(); diff --git a/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php b/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php index e92266d3..ec17960f 100644 --- a/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php +++ b/modules/next/src/Plugin/Next/PreviewUrlGenerator/SimpleOauth.php @@ -11,7 +11,6 @@ use Drupal\Core\Messenger\MessengerInterface; use Drupal\Core\Session\AccountProxyInterface; use Drupal\Core\Url; -use Drupal\next\Annotation\PreviewUrlGenerator; use Drupal\next\Entity\NextSiteInterface; use Drupal\next\Exception\InvalidPreviewUrlRequest; use Drupal\next\Plugin\ConfigurablePreviewUrlGeneratorBase; diff --git a/modules/next/src/Plugin/Next/Revalidator/Path.php b/modules/next/src/Plugin/Next/Revalidator/Path.php index fce7e5c7..af95288e 100644 --- a/modules/next/src/Plugin/Next/Revalidator/Path.php +++ b/modules/next/src/Plugin/Next/Revalidator/Path.php @@ -3,7 +3,6 @@ namespace Drupal\next\Plugin\Next\Revalidator; use Drupal\Core\Form\FormStateInterface; -use Drupal\next\Annotation\Revalidator; use Drupal\next\Event\EntityActionEvent; use Drupal\next\Plugin\ConfigurableRevalidatorBase; use Drupal\next\Plugin\RevalidatorInterface; diff --git a/modules/next/src/Plugin/Next/SitePreviewer/Iframe.php b/modules/next/src/Plugin/Next/SitePreviewer/Iframe.php index fa8f8b3e..d7a36b15 100644 --- a/modules/next/src/Plugin/Next/SitePreviewer/Iframe.php +++ b/modules/next/src/Plugin/Next/SitePreviewer/Iframe.php @@ -10,7 +10,6 @@ use Drupal\Core\Form\FormBuilderInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; -use Drupal\Core\Url; use Drupal\next\Form\IframeSitePreviewerSwitcherForm; use Drupal\next\Plugin\ConfigurableSitePreviewerBase; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -191,7 +190,7 @@ public function render(EntityInterface $entity, array $sites) { 'class' => [ $entity->isPublished() ? 'published' : '', ], - ] + ], ]; } @@ -243,8 +242,8 @@ public function render(EntityInterface $entity, array $sites) { 'iframe_preview' => [ 'sync_route' => $this->configuration['sync_route'], 'skip_routes' => array_map('trim', explode("\n", mb_strtolower($this->configuration['sync_route_skip_routes']))), - ] - ] + ], + ], ], 'library' => [ 'next/site_preview.iframe', diff --git a/modules/next/src/Plugin/RevalidatorBase.php b/modules/next/src/Plugin/RevalidatorBase.php index 5632e805..fd4136f1 100644 --- a/modules/next/src/Plugin/RevalidatorBase.php +++ b/modules/next/src/Plugin/RevalidatorBase.php @@ -6,7 +6,6 @@ use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Plugin\PluginBase; use Drupal\next\NextSettingsManagerInterface; -use GuzzleHttp\Client; use GuzzleHttp\ClientInterface; use Symfony\Component\DependencyInjection\ContainerInterface; diff --git a/modules/next/src/Plugin/RevalidatorInterface.php b/modules/next/src/Plugin/RevalidatorInterface.php index 339da178..dca70f48 100644 --- a/modules/next/src/Plugin/RevalidatorInterface.php +++ b/modules/next/src/Plugin/RevalidatorInterface.php @@ -2,7 +2,6 @@ namespace Drupal\next\Plugin; -use Drupal\Core\Entity\EntityInterface; use Drupal\next\Event\EntityActionEvent; /** diff --git a/modules/next/src/Plugin/SitePreviewerManager.php b/modules/next/src/Plugin/SitePreviewerManager.php index 13b040c9..b4bc756f 100644 --- a/modules/next/src/Plugin/SitePreviewerManager.php +++ b/modules/next/src/Plugin/SitePreviewerManager.php @@ -6,7 +6,6 @@ use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Plugin\DefaultPluginManager; use Drupal\next\Annotation\SitePreviewer; -use Drupal\next\Annotation\SiteResolver; /** * Plugin manager for site previewers. diff --git a/modules/next/src/Render/MainContent/HtmlRenderer.php b/modules/next/src/Render/MainContent/HtmlRenderer.php index 1909062f..0e229ca9 100644 --- a/modules/next/src/Render/MainContent/HtmlRenderer.php +++ b/modules/next/src/Render/MainContent/HtmlRenderer.php @@ -95,11 +95,11 @@ protected function prepare(array $main_content, Request $request, RouteMatchInte return $build; } - // TODO: Make this configurable? + // @todo Make this configurable? $entity_type_id = $entity->getEntityTypeId(); $revision_routes = $entity->getEntityType()->isRevisionable() ? [ "entity.$entity_type_id.revision", - "entity.$entity_type_id.latest_version" + "entity.$entity_type_id.latest_version", ] : []; $routes = array_merge(["entity.$entity_type_id.canonical"], $revision_routes); diff --git a/modules/next/tests/src/Kernel/Controller/NextPreviewUrlControllerTest.php b/modules/next/tests/src/Kernel/Controller/NextPreviewUrlControllerTest.php index 54905576..da752d85 100644 --- a/modules/next/tests/src/Kernel/Controller/NextPreviewUrlControllerTest.php +++ b/modules/next/tests/src/Kernel/Controller/NextPreviewUrlControllerTest.php @@ -50,7 +50,7 @@ protected function setUp(): void { 'id' => 'blog', 'base_url' => 'https://blog.com', 'preview_url' => 'https://blog.com/api/preview', - 'preview_secret' => 'one' + 'preview_secret' => 'one', ]); $this->nextSite->save(); diff --git a/modules/next/tests/src/Kernel/Controller/NextSiteEntityControllerTest.php b/modules/next/tests/src/Kernel/Controller/NextSiteEntityControllerTest.php index 734d2ade..b9c694e0 100644 --- a/modules/next/tests/src/Kernel/Controller/NextSiteEntityControllerTest.php +++ b/modules/next/tests/src/Kernel/Controller/NextSiteEntityControllerTest.php @@ -63,7 +63,7 @@ public function testEnvironmentVariables() { */ public function testOverriddenEnvironmentVariables() { $GLOBALS['config']['next.next_site.' . $this->nextSite->id()] = [ - 'preview_secret' => 'overridden' + 'preview_secret' => 'overridden', ]; $overridden_entity = NextSite::load($this->nextSite->id()); $controller = NextSiteEntityController::create($this->container); diff --git a/modules/next/tests/src/Kernel/Entity/NextEntityTypeConfigTest.php b/modules/next/tests/src/Kernel/Entity/NextEntityTypeConfigTest.php index 4a2cfc7e..ad134adb 100644 --- a/modules/next/tests/src/Kernel/Entity/NextEntityTypeConfigTest.php +++ b/modules/next/tests/src/Kernel/Entity/NextEntityTypeConfigTest.php @@ -52,7 +52,7 @@ protected function setUp(): void { */ public function testSiteResolver() { $blog_site = NextSite::create([ - 'id' => 'blog' + 'id' => 'blog', ]); $blog_site->save(); @@ -116,7 +116,7 @@ public function testSiteResolver() { */ public function testRevalidator() { $blog_site = NextSite::create([ - 'id' => 'blog' + 'id' => 'blog', ]); $blog_site->save(); diff --git a/modules/next/tests/src/Kernel/Entity/NextSiteTest.php b/modules/next/tests/src/Kernel/Entity/NextSiteTest.php index 4b940d72..daff6232 100644 --- a/modules/next/tests/src/Kernel/Entity/NextSiteTest.php +++ b/modules/next/tests/src/Kernel/Entity/NextSiteTest.php @@ -48,7 +48,7 @@ protected function setUp(): void { 'id' => 'blog', 'base_url' => 'https://blog.com', 'preview_url' => 'https://blog.com/api/preview', - 'preview_secret' => 'one' + 'preview_secret' => 'one', ]); $this->nextSite->save(); diff --git a/modules/next/tests/src/Kernel/Event/EntityRevalidatedEventTest.php b/modules/next/tests/src/Kernel/Event/EntityRevalidatedEventTest.php index 90054307..51d9e983 100644 --- a/modules/next/tests/src/Kernel/Event/EntityRevalidatedEventTest.php +++ b/modules/next/tests/src/Kernel/Event/EntityRevalidatedEventTest.php @@ -6,7 +6,6 @@ use Drupal\dblog\Controller\DbLogController; use Drupal\KernelTests\KernelTestBase; use Drupal\next\Entity\NextEntityTypeConfig; -use Drupal\node\Entity\NodeType; use Drupal\Tests\node\Traits\NodeCreationTrait; /** diff --git a/modules/next/tests/src/Kernel/NextEntityTypeManagerTest.php b/modules/next/tests/src/Kernel/NextEntityTypeManagerTest.php index 5ae78c57..f3df8a0a 100644 --- a/modules/next/tests/src/Kernel/NextEntityTypeManagerTest.php +++ b/modules/next/tests/src/Kernel/NextEntityTypeManagerTest.php @@ -5,8 +5,6 @@ use Drupal\KernelTests\KernelTestBase; use Drupal\next\Entity\NextEntityTypeConfig; use Drupal\next\Entity\NextSite; -use Drupal\next\Plugin\Next\PreviewUrlGenerator\SimpleOauth; -use Drupal\next\Plugin\Next\SitePreviewer\Iframe; use Drupal\Tests\node\Traits\NodeCreationTrait; /** @@ -48,7 +46,7 @@ public function testGetSitesForEntity() { $this->assertEmpty($next_entity_type_manager->getSitesForEntity($page)); $blog_site = NextSite::create([ - 'id' => 'blog' + 'id' => 'blog', ]); $blog_site->save(); $this->assertEmpty($next_entity_type_manager->getSitesForEntity($page)); @@ -93,7 +91,7 @@ public function testGetSiteResolver() { $this->assertEmpty($next_entity_type_manager->getSiteResolver($page)); $blog_site = NextSite::create([ - 'id' => 'blog' + 'id' => 'blog', ]); $blog_site->save(); $this->assertEmpty($next_entity_type_manager->getSiteResolver($page)); diff --git a/modules/next/tests/src/Kernel/Plugin/PathRevalidatorTest.php b/modules/next/tests/src/Kernel/Plugin/PathRevalidatorTest.php index 51eb5a18..56306460 100644 --- a/modules/next/tests/src/Kernel/Plugin/PathRevalidatorTest.php +++ b/modules/next/tests/src/Kernel/Plugin/PathRevalidatorTest.php @@ -57,7 +57,7 @@ public function testRevalidate() { $this->container->set('http_client', $client->reveal()); $blog_site = NextSite::create([ - 'id' => 'blog' + 'id' => 'blog', ]); $blog_site->save(); @@ -108,7 +108,7 @@ public function testRevalidate() { _drupal_shutdown_function(); $entity_type_config->setRevalidatorConfiguration('path', [ - 'additional_paths' => "/\n/blog" + 'additional_paths' => "/\n/blog", ])->save(); $client->request('GET', 'http://marketing.com/api/revalidate?slug=/node/3&secret=12345')->shouldBeCalled(); diff --git a/modules/next/tests/src/Kernel/Plugin/SiteResolverTest.php b/modules/next/tests/src/Kernel/Plugin/SiteResolverTest.php index 73d4a593..0cd090fd 100644 --- a/modules/next/tests/src/Kernel/Plugin/SiteResolverTest.php +++ b/modules/next/tests/src/Kernel/Plugin/SiteResolverTest.php @@ -55,7 +55,7 @@ protected function setUp(): void { 'id' => 'blog', 'base_url' => 'https://blog.com', 'preview_url' => 'https://blog.com/api/preview', - 'preview_secret' => 'one' + 'preview_secret' => 'one', ]); $blog->save(); @@ -64,7 +64,7 @@ protected function setUp(): void { 'id' => 'marketing', 'base_url' => 'https://marketing.com', 'preview_url' => 'https://marketing.com/api/preview', - 'preview_secret' => 'two' + 'preview_secret' => 'two', ]); $marketing->save(); diff --git a/modules/next/tests/src/Kernel/Renderer/MainContent/HtmlRendererTest.php b/modules/next/tests/src/Kernel/Renderer/MainContent/HtmlRendererTest.php index 8b392362..96802589 100644 --- a/modules/next/tests/src/Kernel/Renderer/MainContent/HtmlRendererTest.php +++ b/modules/next/tests/src/Kernel/Renderer/MainContent/HtmlRendererTest.php @@ -58,7 +58,7 @@ protected function setUp(): void { 'id' => 'blog', 'base_url' => 'https://blog.com', 'preview_url' => 'https://blog.com/api/preview', - 'preview_secret' => 'one' + 'preview_secret' => 'one', ]); $blog->save();