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

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\Storefront\Page\Page;
  6. class NavigationPage extends Page
  7. {
  8.     /**
  9.      * @var CmsPageEntity|null
  10.      */
  11.     protected $cmsPage;
  12.     protected ?string $navigationId;
  13.     public function getCmsPage(): ?CmsPageEntity
  14.     {
  15.         return $this->cmsPage;
  16.     }
  17.     public function setCmsPage(CmsPageEntity $cmsPage): void
  18.     {
  19.         $this->cmsPage $cmsPage;
  20.     }
  21.     public function getNavigationId(): ?string
  22.     {
  23.         return $this->navigationId;
  24.     }
  25.     public function setNavigationId(?string $navigationId): void
  26.     {
  27.         $this->navigationId $navigationId;
  28.     }
  29.     public function getEntityName(): string
  30.     {
  31.         return CategoryDefinition::ENTITY_NAME;
  32.     }
  33. }