Group 42
Home
Audio Craft
Gear Stuff
Recording
Story Telling
Story Editing
Bash
How-To's
Files & Directories
Query the User
Conditionals
DDEV
Drupal 8/9/10
Blocks
Block Caching
Condition Plugins
Caching
Block Caching
CKEditor
Drush
Custom Commands
Entities
Bundle Subclasses
Entity CRUD
Entity Validation
Field API
Forms
JavaScript
Local Tasks
Render API/Rendering
Routes
Services
current_route_match service
Testing
Views
Guides & Examples
Code Review
Composer
Contributing
Create Links
DDEV for Drupal
Date-Time
Development Tools
Drupal 9 to 10
Headless
Logging
Modules
Site Audit
Site Building
Site Creation
Theming
User Stuff
Writing Update Hooks
Drupal 7
DDEV
Drush VSet Examples
Drupal 6
Git
Articles
Commands
Branch
Rebase
Stash
Tags
Homebrew
JavaScript
Journalism
PHP
Date Handling
Design Patterns
Examples
preg_match
preg_match_all
PHP Unit
Regular Expressions (RegEx)
PHP Composer
Programming Practice
Python
Date/Time
GitPython Library
How To
Script Template
Libraries
Regular Expressions
Reaper
Editing
Unix/Linux/MacOS
CLI Tools
Disks & Files
Video Craft
WordPress
Development
Composer In Plugins
How-To's
Site Building
WP-CLI
More
Change Log
RSS Feed
Notes
>
Drupal 8/9/10
>
Guides & Examples
> User Stuff
Current User
User Logged In?
User Stuff
Current User
$user
=
\Drupal
::
currentUser
();
User Logged In?
\Drupal
::
currentUser
()
->
isAuthenticated
()