You are here

public function ContentLanguageSettings::setTargetBundle in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/src/Entity/ContentLanguageSettings.php \Drupal\language\Entity\ContentLanguageSettings::setTargetBundle()

Sets the bundle this config applies to.

Parameters

string $target_bundle: The bundle.

Return value

$this

Overrides ContentLanguageSettingsInterface::setTargetBundle

File

core/modules/language/src/Entity/ContentLanguageSettings.php, line 127

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

public function setTargetBundle($target_bundle) {
  $this->target_bundle = $target_bundle;
  return $this;
}