You are here

public function EntityCloneSettingsManager::setTakeOwnershipSettings in Entity Clone 8

Set the take ownership setting.

Parameters

int $setting: The settings from the form.

File

src/EntityCloneSettingsManager.php, line 155

Class

EntityCloneSettingsManager
Manage entity clone configuration.

Namespace

Drupal\entity_clone

Code

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