Block models
Block models are registered with the blockModels
extension.
Block models extend Kirby's default Kirby\Cms\Block
object. Methods that you define in a block model are available everywhere in Kirby where you work with a block of the extended type.
Creating a custom block model
Overwriting the default block class
You can also overwrite the default Kirby\Cms\Block
model with a custom class.