public static function Helpers::checkEntityType in Menu Multilingual 8
Check entity type for translation capabilities.
1 call to Helpers::checkEntityType()
- MenuMultilingualBlockTrait::blockForm in src/
Plugin/ Block/ MenuMultilingualBlockTrait.php
File
- src/
Helpers.php, line 58
Class
- Helpers
- Various functions to assist menu_multilingual block.
Namespace
Drupal\menu_multilingualCode
public static function checkEntityType($type) {
/* @var \Drupal\content_translation\ContentTranslationManager $translationManager */
$translationManager = \Drupal::service('content_translation.manager');
return $translationManager
->isEnabled($type);
}