Search Results
… I'm always searching for this information when I need to print out a URL or find the current page path. The difficulty is that finding or printing out a URL is very contextual and there is more than one way to get or use … there is very little documentation on drupal.org about this. Creating URLs and printing out links is perhaps the most common thing that needs …
… share content through the use of an API. This allows users to share a URL for a web page and see a representation of that page embedded in … the providers.json registry. { "provider_name": "Twitter", "provider_url": "http://www.twitter.com/", "endpoints": [ { "schemes": [ … "https://*.twitter.com/*/status/*" ], "url": "https://publish.twitter.com/oembed" } ] } Using this information …
… pointing to a page, and this can be created easily using a Drupal\Core\Url object. $url = Url::fromRoute('entity.node.canonical', ['node' => 1]); return new …
Article: Drupal 9: Creating A GET Form
… from how you get data from the form input to considerations of the URL structure is important. In fact, I would say that creating GET … swapping to a GET form is that the the form data will be added to the URL (which is how GET requests work). This means that any data the user entered will be added to the URL of the page. Additionally, because Drupal adds additional elements …
… httpClient property. public function returnGetPage() { // Generate the Url object for the page we want to get. $url = new Url('entity.node.canonical', ['node' => 123]); // Make the call to the …
Article: Drupal 9: Creating Ajax Dialogs
… { $output = []; $output['a_dialog_link'] = [ '#type' => 'link', '#url' => new Url('mymodule_display_modal'), '#title' => 'node in dialog', … { $output = []; $output['a_dialog_link'] = [ '#type' => 'link', '#url' => new Url('mymodule_display_modal'), '#title' => 'node in …
… and attempting to guess the next available resource by looking at the URL. Apparently, terabytes of Parler's data was downloaded by simply … post that was loaded using the type and ID of the content in the URL. This means that when a user visits the post they might see a URL with the path /post/1 . If a user wanted to see the next available …
… and built into Drupal's default oEmbed providers. Take the following URL of a video on the YouTube. … video using the YouTube oEmbed service. https://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=uzRQ93UEOe0 YouTube responds with a … "title": "SVALBARD In The K! Pit", "author_name": "KERRANG!", "author_url": "https://www.youtube.com/c/KERRANGofficial", "type": "video", …
… this is different from the default path we need to alter the baseurlpath setting to point to the correct place 'baseurlpath' => '/idp', Your project should have the following structure, … . 'cookie_name' => 'SESSdrupalauth4ssp', // the URL of the Drupal logout page 'drupal_logout_url' => …
… The Drupal Session Inspector module allows a user to view their current user sessions on a Drupal … deletion feature is especially useful in situations where the user has neglected to log out of a computer. They can just log into the site in … . Originally posted here https://www.codeenigma.com/blog/drupal-session-inspector-module … Drupal 9: Adding Events To The …