CodeCraft\Pathfinder\Extension\PathfinderControllerExtension
Extend a controller to support an interactive Pathfinder
Let's also typehint the model, because SS doesn't that inherently yet
Synopsis
class PathfinderControllerExtension
extends Extension
{
- // members
- private static array $allowed_actions = ;
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $allowed_actions
—
array
Because {@see Pathfinder} is has a request handler, we can allow requests directly to the page's Pathfinder relation data object for it to handle itself (similar to a {@see Form})