Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / entity_test / src / Entity / EntityTestMul.php
index cbe7ba4c9ba5e53f565d9213320e83f71a944cfd..50ae3771a77d8574a629dc4b181494728752e804 100644 (file)
@@ -2,6 +2,8 @@
 
 namespace Drupal\entity_test\Entity;
 
+use Drupal\Core\Entity\EntityTypeInterface;
+
 /**
  * Defines the test entity class.
  *
@@ -44,4 +46,11 @@ namespace Drupal\entity_test\Entity;
  */
 class EntityTestMul extends EntityTest {
 
+  /**
+   * {@inheritdoc}
+   */
+  public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
+    return parent::baseFieldDefinitions($entity_type) + \Drupal::state()->get($entity_type->id() . '.additional_base_field_definitions', []);
+  }
+
 }