Skip to content

Commit

Permalink
OP-461: Page templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jkindly committed Jul 30, 2024
1 parent 4d4afae commit 4b952d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions spec/Menu/ContentManagementMenuBuilderSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ public function it_build_menu(
$cmsRootMenuItem->setLabel('bitbag_sylius_cms_plugin.ui.collections')->willReturn($cmsRootMenuItem);
$cmsRootMenuItem->setLabelAttribute('icon', 'grid layout')->shouldBeCalled();

$cmsRootMenuItem
->addChild('templates', ['route' => 'bitbag_sylius_cms_plugin_admin_template_index'])
->willReturn($cmsRootMenuItem)
;
$cmsRootMenuItem->setLabel('bitbag_sylius_cms_plugin.ui.templates')->willReturn($cmsRootMenuItem);
$cmsRootMenuItem->setLabelAttribute('icon', 'clone')->shouldBeCalled();
;

$cmsRootMenuItem
->addChild('media', ['route' => 'bitbag_sylius_cms_plugin_admin_media_index'])
->willReturn($cmsRootMenuItem)
Expand Down
8 changes: 4 additions & 4 deletions src/Entity/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

final class Template implements TemplateInterface
{
private ?int $id;
protected ?int $id;

private ?string $name;
protected ?string $name;

private ?string $type;
protected ?string $type;

private array $contentElements = [];
protected array $contentElements = [];

public function getId(): ?int
{
Expand Down

0 comments on commit 4b952d7

Please sign in to comment.