vendor/shopware/storefront/Page/Navigation/NavigationPage.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Storefront\Page\Navigation;
  3. use Shopware\Core\Content\Category\CategoryDefinition;
  4. use Shopware\Core\Content\Cms\CmsPageEntity;
  5. use Shopware\Core\Framework\Log\Package;
  6. use Shopware\Storefront\Page\Page;
  7. #[Package('storefront')]
  8. class NavigationPage extends Page
  9. {
  10.     /**
  11.      * @var CmsPageEntity|null
  12.      */
  13.     protected $cmsPage;
  14.     protected ?string $navigationId;
  15.     public function getCmsPage(): ?CmsPageEntity
  16.     {
  17.         return $this->cmsPage;
  18.     }
  19.     public function setCmsPage(CmsPageEntity $cmsPage): void
  20.     {
  21.         $this->cmsPage $cmsPage;
  22.     }
  23.     public function getNavigationId(): ?string
  24.     {
  25.         return $this->navigationId;
  26.     }
  27.     public function setNavigationId(?string $navigationId): void
  28.     {
  29.         $this->navigationId $navigationId;
  30.     }
  31.     public function getEntityName(): string
  32.     {
  33.         return CategoryDefinition::ENTITY_NAME;
  34.     }
  35. }