SilverStripe\SearchService\Extensions\Elemental\IndexParentPageExtension
Extension class that hooks into BaseElement to ensure that the parent page is indexed whenever an element is published. This is necessary because Silverstripe CMS optimises away database write calls unless they are necessary, so even when you click 'Save' or 'Publish' on a page, the page won't be saved or published unless a direct db field on the page is changed.
Synopsis
Hierarchy
Extends
- SilverStripe\Core\Extension
Methods
public
- onAfterPublish() — Force a re-index of the parent page for any given element