Taitava\CMSEditLink\CMSLinkScaffolder
Class CMSLinkScaffolder
This is a helper class for Taitava\CMSEditLink\CMSEditLink for generating chained CMS links. It' not meant to be used externally.
Synopsis
class CMSLinkScaffolder
{
- // members
- private CMSEditLink $root_link;
- // methods
- public void __construct()
- public string scaffold()
- private static ModelAdmin PickModelAdmin()
Members
private
- $root_link — Taitava\CMSEditLink\CMSEditLink
Methods
private
- PickModelAdmin() — Searches all ModelAdmin classes and tries to find a one which can manage the passed $data_object. If the DataObject has defined a method named `getModelAdminForCMSEditLink()`, then we will use exactly the ModelAdmin returned by that method (but we still do strict checking for the returned ModelAdmin to ensure that it really can manage the passed $data_object). `getModelAdminForCMSEditLink()` may return either a string representing a ModelAdmin class name, or an instance of a ModelAdmin class.