Same name in other branches
  1. 8.x-1.x src/EntityCloneSettingsManager.php \Drupal\entity_clone\EntityCloneSettingsManager::setTakeOwnershipSettings()

Set the take ownership setting.

Paramètres

int $setting: The settings from the form.

Fichier

src/EntityCloneSettingsManager.php, line 155

Classe

EntityCloneSettingsManager
Manage entity clone configuration.

Namespace

Drupal\entity_clone

Code

public function setTakeOwnershipSettings(int $setting) {
    $this->editableConfig
        ->set('take_ownership', $setting)
        ->save();
}