$url = Url::fromRoute($route_name);
$link = Link::fromTextAndUrl($text, $url);
$link = Link::createFromRoute('Link Text', 'route_name')->getUrl();
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>This is a title</title> | |
<style> | |
.div1 { | |
border: 5px solid red; | |
text-align: center; |
<?php | |
/** | |
* Debugging using the database connection. | |
*/ | |
/** @var \Drupal\Core\Database\Connection */ | |
$connection = \Drupal::service('database'); | |
$query = $connection->select('node', 'node'); | |
$query->fields('node', ['nid']) |
<?php | |
/** | |
* @file | |
* Contains \Drupal\my_contact\Form\ContactForm. | |
*/ | |
namespace Drupal\my_contact\Form; | |
use Drupal\Core\Form\FormBase; | |
use Drupal\Core\Form\FormStateInterface; |
<?php | |
/** | |
* @file | |
* Contains lotus.module. | |
*/ | |
use Drupal\user\Entity\User; | |
/** |
https://dl-ssl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B739A42D5-7A93-1BFE-A053-81D56ACD6752%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dfalse%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeStandaloneSetup.exe |
// | |
// ViewController.swift | |
// Journal-Calendar-Demo | |
// | |
// Created by Seb Vidal on 30/04/2024. | |
// | |
import UIKit | |
class ViewController: UIViewController { |
https://dl-ssl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B739A42D5-7A93-1BFE-A053-81D56ACD6752%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dfalse%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeStandaloneSetup.exe |
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done |
exports.countryList = () => { | |
return [ | |
{"name": "Australia", "code": "AU"}, | |
{"name": "Austria", "code": "AT"}, | |
{"name": "Azerbaijan", "code": "AZ"}, | |
{"name": "Bahamas", "code": "BS"}, | |
{"name": "Bahrain", "code": "BH"}, | |
{"name": "Bangladesh", "code": "BD"}, | |
{"name": "Barbados", "code": "BB"}, | |
{"name": "Belarus", "code": "BY"}, |