class ModelUrl implements ExtenderInterface

Methods

__construct(string $modelClass)

No description

addSlugDriver(string $identifier, string $driver)

<p>Add a slug driver.</p>

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

No description

Details

__construct(string $modelClass)

Parameters

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

ModelUrl addSlugDriver(string $identifier, string $driver)

<p>Add a slug driver.</p>

Parameters

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

Return Value

ModelUrl

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

Parameters

Container $container
Extension $extension