SilverStripe\CMS\Controllers\ModelAsController::controller_for
Get the appropriate {@link ContentController} for handling a {@link SiteTree} object, link it to the object and return it.
Signature
public function controller_for(SiteTree
$sitetree,
[string
$action = NULL] )
Parameters
$sitetree
— SilverStripe\CMS\Model\SiteTree
$action
— string
Returns
- ContentController