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
You may also load your model class from a different file. Be aware you have to add the file to the classloader manually:
Overwriting the default block class
You can also overwrite the default Kirby\Cms\Block
model with a custom class.