How to extend an extension

module
silverstripe-4
Tags: #<Tag:0x00007f10ce349de8> #<Tag:0x00007f10ce3497a8>

#1

SS4

How to extend an extension?

PageType is extend by FirstExtension
FirstExtension should be extended by SecondExtension

Ist that possible with Silverstripe?

Thanks in advance

Regards Fabian

// Include any relevant code. If you have a lot of code, link to a gist instead.

#2

I realized that if I have a second Extension extending the same object and both extension have the same function. The function of the last Extension added in config will survive :slight_smile:

Is that the trick? So it wouldn’t be possible to hook into a function from the first extension…:frowning: