You are here

public function IsFront::isFront in Twig Extender 8

Implementation for render block.

File

src/Plugin/TwigPlugin/IsFront.php, line 24

Class

IsFront
The plugin for check authenticated user.

Namespace

Drupal\twig_extender\Plugin\TwigPlugin

Code

public function isFront() {
  return \Drupal::service('path.matcher')
    ->isFrontPage();
}