Conditions | 3 |
Paths | 7 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function getClassTagValues(string $className, string $tag) |
||
27 | { |
||
28 | try { |
||
29 | $coreReflectionService = GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\Reflection\ReflectionService::class); |
||
30 | $classSchema = $coreReflectionService->getClassSchema($className); |
||
31 | $tags = $classSchema->getTags(); |
||
32 | |||
33 | if (!array_key_exists($tag, $tags)) { |
||
34 | return false; |
||
35 | } |
||
36 | |||
37 | return $tags[$tag] ?? []; |
||
38 | } catch (\Exception $e) { |
||
39 | return false; |
||
40 | } |
||
41 | } |
||
42 | |||
64 |