PHP Interface Sulu\Bundle\RouteBundle\Manager\RouteManagerInterface

Datei anzeigen Open project: sulu/sulu

Public Methods

Method Description
create ( Sulu\Bundle\RouteBundle\Model\RoutableInterface $entity, string | null $path = null ) : Sulu\Bundle\RouteBundle\Model\RouteInterface Returns a newly creates route for given routable-entity.
update ( Sulu\Bundle\RouteBundle\Model\RoutableInterface $entity, string | null $path = null ) : Sulu\Bundle\RouteBundle\Model\RouteInterface | null Creates a new route and handles the histories if the route has changed.

Method Details

create() public method

Returns a newly creates route for given routable-entity.
public create ( Sulu\Bundle\RouteBundle\Model\RoutableInterface $entity, string | null $path = null ) : Sulu\Bundle\RouteBundle\Model\RouteInterface
$entity Sulu\Bundle\RouteBundle\Model\RoutableInterface
$path string | null
return Sulu\Bundle\RouteBundle\Model\RouteInterface

update() public method

Creates a new route and handles the histories if the route has changed.
public update ( Sulu\Bundle\RouteBundle\Model\RoutableInterface $entity, string | null $path = null ) : Sulu\Bundle\RouteBundle\Model\RouteInterface | null
$entity Sulu\Bundle\RouteBundle\Model\RoutableInterface
$path string | null
return Sulu\Bundle\RouteBundle\Model\RouteInterface | null