Loading src/Plugin/Block/SocialSharingButtonsBlock.php +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use Drupal\Core\Block\BlockBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Url; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\UrlHelper; use Symfony\Cmf\Component\Routing\RouteObjectInterface; use Symfony\Component\DependencyInjection\ContainerInterface; Loading Loading @@ -191,7 +191,7 @@ class SocialSharingButtonsBlock extends BlockBase implements ContainerFactoryPlu $items['page_url'] = Url::fromRoute('<current>', [], ['absolute' => TRUE]); $items['description'] = ''; $items['title'] = Html::escape($title); $items['title'] = UrlHelper::encodePath($title); $items['width'] = $this->configuration['width'] ?? $config->get('width'); $items['radius'] = $this->configuration['radius'] ?? $config->get('radius'); $items['facebook_app_id'] = $this->configuration['facebook_app_id'] ?? $config->get('facebook_app_id'); Loading Loading
src/Plugin/Block/SocialSharingButtonsBlock.php +2 −2 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ use Drupal\Core\Block\BlockBase; use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Url; use Drupal\Component\Utility\Html; use Drupal\Component\Utility\UrlHelper; use Symfony\Cmf\Component\Routing\RouteObjectInterface; use Symfony\Component\DependencyInjection\ContainerInterface; Loading Loading @@ -191,7 +191,7 @@ class SocialSharingButtonsBlock extends BlockBase implements ContainerFactoryPlu $items['page_url'] = Url::fromRoute('<current>', [], ['absolute' => TRUE]); $items['description'] = ''; $items['title'] = Html::escape($title); $items['title'] = UrlHelper::encodePath($title); $items['width'] = $this->configuration['width'] ?? $config->get('width'); $items['radius'] = $this->configuration['radius'] ?? $config->get('radius'); $items['facebook_app_id'] = $this->configuration['facebook_app_id'] ?? $config->get('facebook_app_id'); Loading