Skip to content

Commit

Permalink
[TASK] Use configured type model instead of guessing
Browse files Browse the repository at this point in the history
Related: #38
  • Loading branch information
brotkrueml committed Mar 21, 2020
1 parent 95e63d5 commit 035c9d8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Classes/Core/ViewHelpers/AbstractTypeViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 035c9d8

Please sign in to comment.