Replace url() by \Drupal::url().
Fix 'value' callback does not change the value.
Fix undefined warning.
Try to fix remote plugin does not work.