diff --git a/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php b/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php index fce0b3a7..00fe44c6 100644 --- a/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php +++ b/Classes/Core/ViewHelpers/AbstractTypeViewHelper.php @@ -168,9 +168,7 @@ protected function checkIsMainEntityOfWebPage(): void protected function getType(): string { - $classNameParts = \explode('\\', static::class); - - return \str_replace('ViewHelper', '', \end($classNameParts)); + return \substr(\strrchr(static::$typeModel, '\\') ?: '', 1); } protected function assignArgumentsToItem(): void