class ModelUrl implements ExtenderInterface

Methods

__construct(string $modelClass)

No description

addSlugDriver(string $identifier, string $driver)

Add a slug driver.

extend(Container $container, Extension $extension = null)

No description

Details

__construct(string $modelClass)

Parameters

string $modelClass The ::class attribute of the model you are modifying. This model should extend from \Flarum\Database\AbstractModel.

ModelUrl addSlugDriver(string $identifier, string $driver)

Add a slug driver.

Parameters

string $identifier Identifier for slug driver.
string $driver ::class attribute of driver class, which must implement Flarum\Http\SlugDriverInterface

Return Value

ModelUrl

extend(Container $container, Extension $extension = null)

Parameters

Container $container
Extension $extension