diff --git a/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php b/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php index e6af293..be1907c 100644 --- a/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php +++ b/core/modules/field/lib/Drupal/field/FieldInstanceStorageController.php @@ -66,20 +66,7 @@ class FieldInstanceStorageController extends ConfigStorageController { * The state key value store. */ public function __construct($entity_type, array $entity_info, ConfigFactory $config_factory, StorageInterface $config_storage, EntityManager $entity_manager, ModuleHandler $module_handler, KeyValueStoreInterface $state) { - $this->entityType = $entity_type; - $this->entityInfo = $entity_info; - $this->hookLoadArguments = array(); - $this->idKey = $this->entityInfo['entity_keys']['id']; - - if (isset($this->entityInfo['entity_keys']['status'])) { - $this->statusKey = $this->entityInfo['entity_keys']['status']; - } - else { - $this->statusKey = FALSE; - } - - $this->configFactory = $config_factory; - $this->configStorage = $config_storage; + parent::__construct($entity_type, $entity_info, $config_factory, $config_storage); $this->entityManager = $entity_manager; $this->moduleHandler = $module_handler; $this->state = $state; diff --git a/core/modules/field/lib/Drupal/field/FieldStorageController.php b/core/modules/field/lib/Drupal/field/FieldStorageController.php index 59e5e28..ecf0460 100644 --- a/core/modules/field/lib/Drupal/field/FieldStorageController.php +++ b/core/modules/field/lib/Drupal/field/FieldStorageController.php @@ -61,20 +61,7 @@ class FieldStorageController extends ConfigStorageController { * The state key value store. */ public function __construct($entity_type, array $entity_info, ConfigFactory $config_factory, StorageInterface $config_storage, EntityManager $entity_manager, ModuleHandler $module_handler, KeyValueStoreInterface $state) { - $this->entityType = $entity_type; - $this->entityInfo = $entity_info; - $this->hookLoadArguments = array(); - $this->idKey = $this->entityInfo['entity_keys']['id']; - - if (isset($this->entityInfo['entity_keys']['status'])) { - $this->statusKey = $this->entityInfo['entity_keys']['status']; - } - else { - $this->statusKey = FALSE; - } - - $this->configFactory = $config_factory; - $this->configStorage = $config_storage; + parent::__construct($entity_type, $entity_info, $config_factory, $config_storage); $this->entityManager = $entity_manager; $this->moduleHandler = $module_handler; $this->state = $state;