Presenter Output

When accessing the field value from a decorated entry model the an instance of \Anomaly\FilesModule\Slug\SlugPresenter will be returned.

SlugFieldTypePresenter::humanize()

The humanize method returns the slug without separators.

Returns: string
Example
$decorated->example->humanize(); // ryan thompson

ucwords($decorated->example->humanize()); // Ryan Thompson
Twig
{{ decorated.example.humanize() }} // ryan thompson

{{ zucwords(decorated.example.humanize()) }} // Ryan Thompson