Commit 299682ef authored by alexpott's avatar alexpott

Issue #2056827 by janstoeckler: Remove Unused local variable $module_handler()...

Issue #2056827 by janstoeckler: Remove Unused local variable $module_handler() from /core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php.
parent 29907b06
......@@ -352,7 +352,6 @@ public function save() {
* In case of failures at the configuration storage level.
*/
protected function saveNew() {
$module_handler = \Drupal::moduleHandler();
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
// Check that the field can be attached to this entity type.
......@@ -394,7 +393,6 @@ protected function saveNew() {
* In case of failures at the configuration storage level.
*/
protected function saveUpdated() {
$module_handler = \Drupal::moduleHandler();
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
$original = $instance_controller->loadUnchanged($this->getOriginalID());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment