Issue #2056827 by janstoeckler: Remove Unused local variable $module_handler() from /core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php.

8.0.x
Alex Pott 2013-08-03 12:31:47 +02:00
parent 29907b0610
commit 299682efda
1 changed files with 0 additions and 2 deletions

View File

@ -352,7 +352,6 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface {
* 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 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface {
* 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());