gorriecoe\Menu\Extensions\SiteTreeAutoCreateExtension
Provides the option to automatically create a menu link after creating a page in the sitetree
Synopsis
class SiteTreeAutoCreateExtension
extends DataExtension
{
- // methods
- public ArrayList getOwnsMenu()
- public void onAfterPublish()
- public void onBeforeUnpublish()
- public void onBeforeDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
public
- getOwnsMenu() — Get list of menus owned by this page.
- onAfterPublish() — Event handler called after Publishing to the live sitetree.
- onBeforeDelete() — Event handler called before deleting from the database.
- onBeforeUnpublish() — Event handler called before unpublishing from live sitetree.