Search Results
… 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()); …