method

View.SlugSource

SlugSource returns the source field path for a text-backed slug helper. The boolean distinguishes an invalid empty source from an ordinary text field.

Returns

The declared result.

(string, bool)

Full signature

func (d View) SlugSource() ( string, bool, )

Source field/field.go:387

Related types

  • View

    View is a read-only snapshot of a canonical immutable node. Its readers detach mutable values; author fields through their concrete fluent facades.