/ LJCPHPCodeDoc / LJCHTMLLib / LJCHTML / GetLink


Parameters
$fileName - The CSS file name.
$textState - The current text state values.

Returns

The <Link> element.

Syntax

PHP
public static function GetLink(string $fileName, LJCTextState $textState) : string

Gets the link element for a style sheet.

Example

PHP
 // Gets the  element for a style sheet.
 private static function GetLink()
 {
   // Root Method Begin
   $textState = new LJCTextState();
 
   // Example Method:
   $result = LJCHTML::GetLink("CSS/File.css", $textState);
 
   // result:
   // <link href="CSS/File.css" rel="stylesheet" />
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.