diff --git a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php index d714d56..5100793 100644 --- a/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php +++ b/core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php @@ -177,24 +177,6 @@ protected function getEntitiesToView(EntityReferenceFieldItemListInterface $item } /** - * {@inheritdoc} - */ - public function calculateDependencies() { - // Make sure to include third party dependencies. - $dependencies = parent::calculateDependencies(); - - // Check for a valid image style. - if (!empty($image_style_name = $this->getSetting('image_style'))) { - if ($image_style = $this->imageStyleStorage->load($image_style_name)) { - // Add a dependency to image style. - $dependencies[$image_style->getConfigDependencyKey()][] = $image_style->getConfigDependencyName(); - } - } - - return $dependencies; - } - - /** * Returns the entity repository service. * * @return \Drupal\Core\Entity\EntityRepositoryInterface