Updater
in package
implements
IPageUpdater
Page update service.
Updates existing pages with validation.
Table of Contents
Interfaces
- IPageUpdater
- Page updater service interface
Properties
Methods
- __construct() : mixed
- update() : Page
- Update an existing page from DTO
Properties
$_pageRepository
private
IPageRepository
$_pageRepository
Methods
__construct()
public
__construct(IPageRepository $pageRepository) : mixed
Parameters
- $pageRepository : IPageRepository
update()
Update an existing page from DTO
public
update(Dto $request) : Page
Parameters
- $request : Dto
-
DTO containing id, title, content, status, slug, template, meta_title, meta_description, meta_keywords
Tags
Return values
Page —Updated page