jefsev
02/15/2023, 9:27 AMclass PageController extends BaseModuleController
{
protected $moduleName = 'pages';
public $permalinkBase = '';
protected $indexOptions = [
'reorder' => true,
];
protected $nestedItemsDepth = 4;
protected function form($id, $item = null):array
{
$item = $this->repository->getById($id, $this->formWith, $this->formWithCount);
$this->permalinkBase = $item->ancestorsSlug;
return parent::form($id, $item);
}
}