function NodeStatus::get_value in Fasttoggle 8.2
Retrieve the current value of the setting.
Return value
string The current key matching getHumanReadableValueList / getValueList.
Overrides SettingTrait::get_value
File
- src/
Plugin/ Setting/ NodeStatus.php, line 98 - 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\SettingCode
function get_value($instance = '') {
return $this->object
->get('status')->value;
}