Issue #2056827 by janstoeckler: Remove Unused local variable $module_handler() from /core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php.
parent
29907b0610
commit
299682efda
|
@ -352,7 +352,6 @@ class FieldInstance extends ConfigEntityBase implements FieldInstanceInterface {
|
||||||
* In case of failures at the configuration storage level.
|
* In case of failures at the configuration storage level.
|
||||||
*/
|
*/
|
||||||
protected function saveNew() {
|
protected function saveNew() {
|
||||||
$module_handler = \Drupal::moduleHandler();
|
|
||||||
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
|
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
|
||||||
|
|
||||||
// Check that the field can be attached to this entity type.
|
// 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.
|
* In case of failures at the configuration storage level.
|
||||||
*/
|
*/
|
||||||
protected function saveUpdated() {
|
protected function saveUpdated() {
|
||||||
$module_handler = \Drupal::moduleHandler();
|
|
||||||
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
|
$instance_controller = \Drupal::entityManager()->getStorageController($this->entityType);
|
||||||
|
|
||||||
$original = $instance_controller->loadUnchanged($this->getOriginalID());
|
$original = $instance_controller->loadUnchanged($this->getOriginalID());
|
||||||
|
|
Loading…
Reference in New Issue