You are here

function NodeStatus::set_value in Fasttoggle 8.2

Retrieve the current value of the setting.

Return value

string The current key matching getHumanReadableValueList / getValueList.

Overrides SettingTrait::set_value

File

src/Plugin/Setting/NodeStatus.php, line 108
Fasttoggle Node Status

Class

NodeStatus
Abstract interface for settings. Plugin strings are used for quick filtering without the need to instantiate the class.

Namespace

Drupal\fasttoggle\Plugin\Setting

Code

function set_value($instance = '', $newValue) {
  return $this->object
    ->set('status', $newValue);
}