public static function MenuCreator::isMenuTranslatable in GatherContent 8.5
Same name and namespace in other branches
- 8.4 src/Import/MenuCreator.php \Drupal\gathercontent\Import\MenuCreator::isMenuTranslatable()
Decide whether a menu is translatable.
2 calls to MenuCreator::isMenuTranslatable()
- MenuCreator::createMenu in src/
Import/ MenuCreator.php - Create a menu link to the imported node.
- MenuCreator::createMenuLink in src/
Import/ MenuCreator.php - Create menu link if requested.
File
- src/
Import/ MenuCreator.php, line 149
Class
- MenuCreator
- Class for creating menus after import.
Namespace
Drupal\gathercontent\ImportCode
public static function isMenuTranslatable() {
return \Drupal::moduleHandler()
->moduleExists('content_translation') && \Drupal::service('content_translation.manager')
->isEnabled('menu_link_content');
}