diff --git a/src/Plugin/MediaEntity/Type/Image.php b/src/Plugin/MediaEntity/Type/Image.php index 783be19..09b9655 100644 --- a/src/Plugin/MediaEntity/Type/Image.php +++ b/src/Plugin/MediaEntity/Type/Image.php @@ -3,8 +3,6 @@ namespace Drupal\media_entity_image\Plugin\MediaEntity\Type; use Drupal\Core\Config\Config; -use Drupal\Core\Ajax\AjaxResponse; -use Drupal\Core\Ajax\ReplaceCommand; use Drupal\Core\Datetime\DrupalDateTime; use Drupal\Core\Entity\EntityFieldManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface; @@ -65,18 +63,6 @@ class Image extends MediaTypeBase { /** * {@inheritdoc} */ - public function ajaxTypeProviderData(array $form, FormStateInterface $form_state) { - $response = new AjaxResponse(); - $plugin = $this->entity->getType()->getPluginId(); - $response->addCommand(new ReplaceCommand('#edit-type-configuration-plugin-wrapper', $form['type_configuration'][$plugin])); - $response->addCommand(new ReplaceCommand('#field-mapping-wrapper', $form['field_mapping'])); - - return $response; - } - - /** - * {@inheritdoc} - */ public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) { return new static( $configuration,