src/Charcoal/Cms/Route/GenericRoute.php
protected function loadContextObject()
    {
        $route = $this->getObjectRouteFromPath();

        $obj = $this->modelFactory()->create($route->routeObjType());
        $obj->load($route->routeObjId());

        return $obj;
    }
protected function loadContextObject()
    {
        $route = $this->getObjectRouteFromPath();

        $obj = $this->modelFactory()->create($route->routeObjType());
        $obj->load($route->routeObjId());

        return $obj;
    }
protected function loadContextObject ( ) { $ route = $ this -> getObjectRouteFromPath ( ) ; $ obj = $ this -> modelFactory ( ) -> create ( $ route -> routeObjType ( ) ) ; $ obj -> load ( $ route -> routeObjId ( ) ) ; return $ obj ; }
Load the object associated with the matching object route.

Validating if the object ID exists is delegated to the
{@see GenericRoute Chainable::pathResolvable()} method.

@return RoutableInterface
Load the object associated with the matching object route .