Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is it possible to display the site UUID on a Drupal 8 module?
"display" is pretty ambiguous, but you can get the site UUID like so:
$uuid = \Drupal::config('system.site')->get('uuid');
(depending on context, injecting the config.factory service would be preferable)
It's a string so rendering it will be easy.
for you Drupal 8 site
drush config-get "system.site" uuid
or if you need to change it
drush config-get "system.site" uuid "number you want"
Required, but never shown