SilverStripe\CMS\Tests\Model\SiteTreeTest_ExtensionA
Synopsis
class SiteTreeTest_ExtensionA
extends SiteTreeExtension
implements
TestOnly
{
- // members
- public static boolean $can_publish = true;
- // methods
- public void canPublish()
- public void updateLink()
- // Inherited methods from SiteTreeExtension
- public void onBeforePublish()
- public void onAfterPublish()
- public void onBeforeUnpublish()
- public void onAfterUnpublish()
- public boolean|null canAddChildren()
- public boolean|null canPublish()
- public void updateRelativeLink()
Hierarchy
Members
public
- $can_publish
Methods
public
Inherited from SilverStripe\CMS\Model\SiteTreeExtension
public
- canAddChildren() — Hook called to determine if a user may add children to this SiteTree object
- canPublish() — Hook called to determine if a user may publish this SiteTree object
- onAfterPublish() — Hook called after the page's {@link Versioned::publishSingle()} action is completed
- onAfterUnpublish() — Hook called after the page's {@link SiteTree::doUnpublish()} action is completed
- onBeforePublish() — Hook called before the page's {@link Versioned::publishSingle()} action is completed
- onBeforeUnpublish() — Hook called before the page's {@link Versioned::doUnpublish()} action is completed
- updateRelativeLink() — Hook called to modify the $base url of this page, with a given $action, before {@link SiteTree::RelativeLink()} calls {@link Controller::join_links()} on the $base and $action