Method |
Description |
|
__construct ( Tag $attr, Entity $ent, PermissionService $ps ) |
TagRepo constructor. |
|
getEntity ( $entityType, $entityId, string $action = 'view' ) |
Get an entity instance of its particular type. |
|
getForEntity ( string $entityType, integer $entityId ) : mixed |
Get all tags for a particular entity. |
|
getNameSuggestions ( $searchTerm = false ) : array |
Get tag name suggestions from scanning existing tag names. |
|
getValueSuggestions ( $searchTerm = false, $tagName = false ) : array |
Get tag value suggestions from scanning existing tag values. |
|
saveTagsToEntity ( Entity $entity, array $tags = [] ) : array | Illuminate\Database\Eloquent\Collection |
Save an array of tags to an entity |
|