if ($this->
isSupported($entity_type_id)) { $supported_types[$entity_type_id] =
$entity_type;
} } return $supported_types;
} /**
* {@inheritdoc}
*/
public function setEnabled($entity_type_id,
$bundle,
$value) { $config =
$this->
loadContentLanguageSettings($entity_type_id,
$bundle);
$config->
setThirdPartySetting('content_translation', 'enabled',
$value)->
save();
} /**
* {@inheritdoc}
*/
public function isEnabled($entity_type_id,
$bundle = NULL
) { $enabled = FALSE;
if ($this->
isSupported($entity_type_id)) { $bundles = !
empty($bundle) ?
[$bundle] :
array_keys($this->entityTypeBundleInfo->
getBundleInfo($entity_type_id));