trait HasNesting (View source)

Traits

NodeTrait

Methods

string
getNestedSlug(string|null $locale = null)

Returns the combined slug for this item including all ancestors.

string
getNestedSlugAttribute()

No description

string
getAncestorsSlug(string|null $locale = null)

Returns the combined slug for all ancestors of this item.

string
getAncestorsSlugAttribute()

No description

static 
saveTreeFromIds($nodeTree)

No description

static 
flattenTree(array $nodeTree, int $parentId = null)

No description

newCollection(array $models = [])

{@inheritdoc}

Details

string getNestedSlug(string|null $locale = null)

Returns the combined slug for this item including all ancestors.

Parameters

string|null $locale

Return Value

string

string getNestedSlugAttribute()

No description

Return Value

string

string getAncestorsSlug(string|null $locale = null)

Returns the combined slug for all ancestors of this item.

Parameters

string|null $locale

Return Value

string

string getAncestorsSlugAttribute()

No description

Return Value

string

static saveTreeFromIds($nodeTree)

No description

Parameters

$nodeTree

static flattenTree(array $nodeTree, int $parentId = null)

No description

Parameters

array $nodeTree
int $parentId

newCollection(array $models = [])

{@inheritdoc}

Parameters

array $models