Skip to content

Category Helpers

This helper provides utility methods to work with categories.

getRootCategory

The getRootCategory method returns the initial root category of the shop or null if none is found.

php
<?php

class MyFixture extends Fixture {
    public function load(): void {
        $category = $this->helper->Category()->getRootCategory(); 
    }
}

Released under the MIT License.