v7.0.0-beta.4 release
This commit is contained in:
1 parent
05db17887d
commit
1db039ff34
1545 files changed
+136783
-11634
No files matched your search
@@ -43,10 +43,30 @@ class TemplateResource extends BaseApiResource
|
||||
// pending/bundled 상태
|
||||
'is_pending' => $this->getValue('is_pending', false),
|
||||
'is_bundled' => $this->getValue('is_bundled', false),
|
||||
// 비활성화 메타 (코어 버전 호환성)
|
||||
'deactivated_reason' => $this->getDeactivatedReasonValue(),
|
||||
'deactivated_at' => $this->getValue('deactivated_at'),
|
||||
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
|
||||
...$this->resourceMeta($request),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* deactivated_reason 을 항상 string|null 로 직렬화합니다.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
protected function getDeactivatedReasonValue(): ?string
|
||||
{
|
||||
$value = $this->getValue('deactivated_reason');
|
||||
|
||||
if ($value instanceof \BackedEnum) {
|
||||
return $value->value;
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 리소스별 권한 매핑을 반환합니다.
|
||||
*
|
||||
@@ -87,6 +107,10 @@ class TemplateResource extends BaseApiResource
|
||||
// pending/bundled 상태
|
||||
'is_pending' => $this->getValue('is_pending', false),
|
||||
'is_bundled' => $this->getValue('is_bundled', false),
|
||||
// 비활성화 메타 (코어 버전 호환성)
|
||||
'deactivated_reason' => $this->getDeactivatedReasonValue(),
|
||||
'deactivated_at' => $this->getValue('deactivated_at'),
|
||||
'incompatible_required_version' => $this->getValue('incompatible_required_version'),
|
||||
// 상세 정보
|
||||
'locales' => $this->getValue('locales', []),
|
||||
'layouts_count' => $this->getValue('layouts_count', 0),
|
||||
|
||||
Reference in new issue
Block a user