You are here

NewEdit.php in Multiversion 8

Same filename and directory in other branches
  1. 8.2 src/NewEdit.php

File

src/NewEdit.php
View source
<?php

namespace Drupal\multiversion;

use Drupal\Core\TypedData\TypedData;

/**
 * The 'new_edit' property for revision token fields.
 */
class NewEdit extends TypedData {

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

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

}

Classes

Namesort descending Description
NewEdit The 'new_edit' property for revision token fields.