/**
  * Creates a FeedLink instance.
  *
  * @param string $title
  *   The title of the feed.
  * @param string $href
  *   The absolute URL to the feed.
  */
 public function __construct($title, $href)
 {
     $rel = 'alternate';
     $attributes['title'] = $title;
     $attributes['type'] = 'application/rss+xml';
     parent::__construct($href, $rel, $attributes);
 }
示例#2
0
 /**
  * @param string $href
  *   The URI of a Stylesheet to reference.
  */
 public function __construct($href)
 {
     $attributes['type'] = 'text/css';
     parent::__construct('stylesheet', $href, $attributes);
 }