Search Results
… = document.getElementById(elementId); element.style.backgroundImage = 'url(' + element.dataset.image + ')'; element.style.backgroundPosition = …
… (Custom menu link) node (Content) paragraph (Paragraph) path_alias (URL alias) shortcut (Shortcut link) taxonomy_term (Taxonomy term) user …
… metrics to push the test results to Show Slow. extensions.yslow.beaconUrl = http://my.showslow.server.com/beacon/yslow/ … function setUp() { $this->setBrowser("firefox"); $this->setBrowserUrl("http://www.hashbangcode.com/"); } public function testMyTestCase() … to the takeScreenshot() method. The $screenshotPath and $screenshotUrl variables need to be set before this is done, but this is a good …
… If you run a Drupal site for any length of time you will quickly realise that a few paths that … and if they can exploit it or not. It's a bit of a shame that the internet is like this, but it's just one of the things you need to be aware … site you can use the following SQL. This assumes that you have the DBLog module active on the site, which might not always be the case. The …
… would. The neat thing about this is that once you have generated the URL your browser will open automatically and take you to the link. …
… HTTPS traffic when trying to cache pages. sub vcl_hash { hash_data(req.url); if (req.http.host) { hash_data(req.http.host); } else { …
… I like working with DrupalVM and I've worked with Ansible based Vagrant setups … Vagrant, but you can run it with Docker if you like. When starting a new site project I normally add DrupalVM to the codebase so that I can … on what is in the recommended composer file see my previous blog post on the subject . After this step you can require any other …
… PHPStan is a great command line tool for looking at how your PHP code will run without actually … x Unsafe usage of new static(). 💡 See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static ------ …
… over and each one is placed into the sitemap.xml file as an absolute URL. We do this by adding each link to the $arbitrary_links array that … by the Simple XML Sitemap module as a new link. <?php use Drupal\Core\Url; /** * Implements hook_simple_sitemap_arbitrary_links_alter(). */ … 'TRUE') { // This is a public link, so add to the sitemap.xml file. $url = Url::fromRoute($routeName, [], ['absolute' => TRUE, 'https' => …
… add needed attributes. $image->setAttribute('src', $file->createFileUrl()); $image->setAttribute('data-entity-uuid', $file->uuid()); …