Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Provide frontpage variant
- try {
- $isFront = \Drupal::service('path.matcher')->isFrontPage();
- }
- catch (Exception $e) {
- $isFront = FALSE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement