diff --git a/sharethis.module b/sharethis.module
index 718e126..8223bae 100644
--- a/sharethis.module
+++ b/sharethis.module
@@ -60,7 +60,7 @@ function sharethis_entity_extra_field_info() {
   $extra = array();
   // Only add extra fields if the location is the node content.
   if ($sharethis_settings->get('location') == 'content') {
-    $entity_info = \Drupal::entityManager()->getAllBundleInfo('node');
+    $entity_info = \Drupal::entityTypeManager()->getAllBundleInfo('node');
     if (isset($entity_info['node'])) {
       foreach ($entity_info['node'] as $bundle => $bundle_info) {
         $extra['node'][$bundle]['display'] = array(
@@ -97,7 +97,7 @@ function sharethis_node_view(array &$build, EntityInterface $node, EntityViewDis
   $data_options = $sharethis_manager->getOptions();
 
   // Get the full path to insert into the Share Buttons.
-  $path = $node->urlInfo();
+  $path = $node->toUrl();
   $path = $path->getInternalPath();
   global $base_url;
   $path_obj = Url::fromUri($base_url . '/' . $path,
diff --git a/src/Form/SharethisConfigurationForm.php b/src/Form/SharethisConfigurationForm.php
index 959961f..cb65da6 100644
--- a/src/Form/SharethisConfigurationForm.php
+++ b/src/Form/SharethisConfigurationForm.php
@@ -15,7 +15,7 @@ use Drupal\Core\Form\ConfigFormBase;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\sharethis\SharethisManagerInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
-use Drupal\Core\Entity\EntityManagerInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
 
 /**
  * Provides a settings for sharethis module.
@@ -53,7 +53,7 @@ class SharethisConfigurationForm extends ConfigFormBase {
    * @param \Drupal\sharethis\SharethisManagerInterface $sharethis_manager
    *   The sharethis Manager.
    */
-  public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager, SharethisManagerInterface $sharethis_manager) {
+  public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_manager, SharethisManagerInterface $sharethis_manager) {
     parent::__construct($config_factory);
 
     $this->moduleHandler = $module_handler;
@@ -377,7 +377,7 @@ class SharethisConfigurationForm extends ConfigFormBase {
     if (($current_location == 'content' || $new_location == 'content') && $current_location != $new_location) {
       $this->entityManager->clearCachedFieldDefinitions();
     }
-    $entity_info = \Drupal::entityManager()->getAllBundleInfo('node');
+    $entity_info = \Drupal::entityTypeManager()->getAllBundleInfo('node');
     if (isset($entity_info['node'])) {
       $entity_types = $entity_info['node'];
     }
diff --git a/src/Plugin/Block/SharethisWidgetBlock.php b/src/Plugin/Block/SharethisWidgetBlock.php
index de10279..bf9f454 100644
--- a/src/Plugin/Block/SharethisWidgetBlock.php
+++ b/src/Plugin/Block/SharethisWidgetBlock.php
@@ -135,7 +135,7 @@ class SharethisWidgetBlock extends BlockBase implements ContainerFactoryPluginIn
         $mpath = $this->configuration['sharethis_path_external'];
       }
       else {
-        $current_path = \Drupal::url('<current>');
+        $current_path = Url::fromRoute('<current>')->toString();
         $path = ($this->configuration['sharethis_path'] == 'global') ? '<front>' : $current_path;
 
         global $base_url;
diff --git a/src/Plugin/Views/field/SharethisNode.php b/src/Plugin/Views/field/SharethisNode.php
index f89feb3..9508eaf 100644
--- a/src/Plugin/Views/field/SharethisNode.php
+++ b/src/Plugin/Views/field/SharethisNode.php
@@ -34,7 +34,7 @@ class SharethisNode extends FieldPluginBase {
     $sharethis_manager = \Drupal::service('sharethis.manager');
     $node = $values->_entity;
     $m_title = $node->getTitle();
-    $path = $node->urlInfo();
+    $path = $node->toUrl();
     $path = $path->getInternalPath();
     global $base_url;
     $path_obj = Url::fromUri($base_url . '/' . $path,
diff --git a/src/SharethisManager.php b/src/SharethisManager.php
index f173901..071f38b 100644
--- a/src/SharethisManager.php
+++ b/src/SharethisManager.php
@@ -244,7 +244,7 @@ class SharethisManager implements SharethisManagerInterface {
         '#value' => '',
       );
       // Render the span tag.
-      $st_spans .= drupal_render($meta_generator);
+      $st_spans .= \Drupal::service('renderer')->render($meta_generator);
     }
 
     return [
