diff --git a/Configuration/TCA/Overrides/sys_reaction.php b/Configuration/TCA/Overrides/sys_reaction.php index 52a52bc..626d282 100644 --- a/Configuration/TCA/Overrides/sys_reaction.php +++ b/Configuration/TCA/Overrides/sys_reaction.php @@ -31,12 +31,15 @@ defined('TYPO3') or die(); -ExtensionManagementUtility::addTcaSelectItem( - 'sys_reaction', - 'reaction_type', - [ - 'label' => ExampleReactionType::getDescription(), - 'value' => ExampleReactionType::getType(), - 'icon' => ExampleReactionType::getIconIdentifier(), - ], -); +if (ExtensionManagementUtility::isLoaded('reactions')) { + + ExtensionManagementUtility::addTcaSelectItem( + 'sys_reaction', + 'reaction_type', + [ + 'label' => ExampleReactionType::getDescription(), + 'value' => ExampleReactionType::getType(), + 'icon' => ExampleReactionType::getIconIdentifier(), + ], + ); +}