public static function Importer::isContentTypeTranslatable in GatherContent 8.4
Decide whether a content type is translatable.
2 calls to Importer::isContentTypeTranslatable()
- ContentProcessor::createNode in src/
Import/ ContentProcess/ ContentProcessor.php - Create a Drupal node filled with the properties of the GC item.
- MenuCreator::createMenu in src/
Import/ MenuCreator.php - Create a menu link to the imported node.
File
- src/
Import/ Importer.php, line 153
Class
- Importer
- Class for handling import/update logic from GatherContent to Drupal.
Namespace
Drupal\gathercontent\ImportCode
public static function isContentTypeTranslatable($contentType) {
return \Drupal::moduleHandler()
->moduleExists('content_translation') && \Drupal::service('content_translation.manager')
->isEnabled('node', $contentType);
}