Skip to content
Snippets Groups Projects
Select Git revision
  • eaa244d347977ec2c40a29af16a7bc7952372b84
  • 11.x default protected
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

xmlrpc.inc

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    link.module 699 B
    <?php
    
    /**
     * @file
     */
    
    use Drupal\Core\Link;
    
    /**
     * Prepares variables for separated link field templates.
     *
     * This template outputs a separate title and link.
     *
     * Default template: link-formatter-link-separate.html.twig.
     *
     * @param array $variables
     *   An associative array containing:
     *   - title: (optional) A descriptive or alternate title for the link, which
     *     may be different than the actual link text.
     *   - url_title: The anchor text for the link.
     *   - url: A \Drupal\Core\Url object.
     */
    function template_preprocess_link_formatter_link_separate(&$variables): void {
      $variables['link'] = Link::fromTextAndUrl($variables['url_title'], $variables['url'])->toString();
    }