You are here

public function ContentLanguageSettings::setTargetBundle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 116
Contains \Drupal\language\Entity\ContentLanguageSettings.

Class

ContentLanguageSettings
Defines the ContentLanguageSettings entity.

Namespace

Drupal\language\Entity

Code

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