Skip to content

Commit

Permalink
Add first draft of cms page
Browse files Browse the repository at this point in the history
  • Loading branch information
jkniest committed Jun 16, 2024
1 parent 035e0a8 commit edb90bf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/helpers/cms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CMS Helpers

This helper provides utility methods to work with cms pages and layouts.

## getDefaultCategoryLayout

The `getDefaultCategoryLayout` method returns the cms page entity, which is created by shopware and represents the default category layout or null if it doesn't exists.

```php
<?php

class MyFixture extends Fixture {
public function load(): void {
$cmsPage = $this->helper->Cms()->getDefaultCategoryLayout(); // [!code focus]
}
}
```

0 comments on commit edb90bf

Please sign in to comment.