Skip to content
Snippets Groups Projects
Commit c8659444 authored by catch's avatar catch
Browse files

Issue #2971853 by q__nt_n, Sam152: Clean up superfluous use of...

Issue #2971853 by q__nt_n, Sam152: Clean up superfluous use of "additional_base_field_definitions" in the entity_test module
parent bb301ba0
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ 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', []);
return parent::baseFieldDefinitions($entity_type);
}
}
......@@ -54,7 +54,7 @@ class EntityTestMulRev extends EntityTestRev {
* {@inheritdoc}
*/
public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
$fields = parent::baseFieldDefinitions($entity_type) + \Drupal::state()->get($entity_type->id() . '.additional_base_field_definitions', []);
$fields = parent::baseFieldDefinitions($entity_type);
$fields['non_mul_field'] = BaseFieldDefinition::create('string')
->setLabel(t('Non translatable'))
......
......@@ -67,7 +67,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {
->setCardinality(1)
->setReadOnly(TRUE);
return $fields + \Drupal::state()->get($entity_type->id() . '.additional_base_field_definitions', []);
return $fields;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment