You are here

public function NewEdit::getValue in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/NewEdit.php \Drupal\multiversion\NewEdit::getValue()

Gets the data value.

Return value

mixed The data value.

Overrides TypedData::getValue

File

src/NewEdit.php, line 15

Class

NewEdit
The 'new_edit' property for revision token fields.

Namespace

Drupal\multiversion

Code

public function getValue($langcode = NULL) {
  if ($this->value !== NULL) {
    return $this->value;
  }

  // Fall back on TRUE as the default value.
  return TRUE;
}