@@ -167,6 +178,11 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this->urlResolver=$url_resolver;
$this->iFrameUrlHelper=$iframe_url_helper;
$this->fileSystem=$file_system;
if(empty($token)){
@trigger_error('The token service should be passed to '.__METHOD__.'() and is required in drupal:10.0.0. See https://www.drupal.org/node/3240036',E_USER_DEPRECATED);
$token=\Drupal::token();
}
$this->token=$token;
}
/**
@@ -187,7 +203,8 @@ public static function create(ContainerInterface $container, array $configuratio