protected function EntityHandlerBase::isEntityTypeTranslatable in CMS Content Sync 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/EntityHandlerBase.php \Drupal\cms_content_sync\Plugin\EntityHandlerBase::isEntityTypeTranslatable()
- 2.1.x src/Plugin/EntityHandlerBase.php \Drupal\cms_content_sync\Plugin\EntityHandlerBase::isEntityTypeTranslatable()
Parameters
\Drupal\Core\Entity\EntityInterface $entity:
Return value
bool
2 calls to EntityHandlerBase::isEntityTypeTranslatable()
- EntityHandlerBase::push in src/
Plugin/ EntityHandlerBase.php - EntityHandlerBase::setEntityValues in src/
Plugin/ EntityHandlerBase.php - Set the values for the pulled entity.
File
- src/
Plugin/ EntityHandlerBase.php, line 853
Class
- EntityHandlerBase
- Common base class for entity handler plugins.
Namespace
Drupal\cms_content_sync\PluginCode
protected function isEntityTypeTranslatable($entity) {
return $entity instanceof TranslatableInterface && $entity
->getEntityType()
->getKey('langcode');
}