Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Field / FieldConfigBase.php
index e53e84b6c89ba1a2979a8dea65771604b04bb209..a32ff423beac9996cdc5dee733d657a588364615 100644 (file)
@@ -591,4 +591,15 @@ abstract class FieldConfigBase extends ConfigEntityBase implements FieldConfigIn
     return $this;
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function isInternal() {
+    // Respect the definition, otherwise default to TRUE for computed fields.
+    if (isset($this->definition['internal'])) {
+      return $this->definition['internal'];
+    }
+    return $this->isComputed();
+  }
+
 }