Drupal 8 notes
Опубликовано 22/10/2019
- urls
$current_url = \Drupal\Core\Url::fromRoute('<current>', array(), array("absolute" => TRUE))->toString(); // get full url
- Variables
Drupal\Core\Site\Settings::get('some_setting_here'); // Get a setting from settings.php