Internal attributes are now handled by the new backend setup for attribute tags
This commit is contained in:
@@ -13,6 +13,15 @@ abstract class Internal extends Attribute
|
||||
{
|
||||
protected(set) bool $is_internal = TRUE;
|
||||
|
||||
public function __get(string $key): mixed
|
||||
{
|
||||
return match ($key) {
|
||||
// Internal items shouldnt have language tags, so our values should only have 1 key
|
||||
'values'=>collect($this->values->first()),
|
||||
default => parent::__get($key),
|
||||
};
|
||||
}
|
||||
|
||||
public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE): View
|
||||
{
|
||||
// @note Internal attributes cannot be edited
|
||||
|
Reference in New Issue
Block a user