diff --git a/metsis/metsis_lib/src/Controller/DynamicLandingPagesController.php b/metsis/metsis_lib/src/Controller/DynamicLandingPagesController.php index bd80b99..f42e706 100644 --- a/metsis/metsis_lib/src/Controller/DynamicLandingPagesController.php +++ b/metsis/metsis_lib/src/Controller/DynamicLandingPagesController.php @@ -6,6 +6,7 @@ use Drupal\Core\Access\AccessResult; use Drupal\Core\Controller\ControllerBase; use Drupal\Core\Session\AccountInterface; +use Drupal\Core\Session\AccountProxyInterface; use Drupal\Core\Url; use Drupal\search_api\Entity\Index; @@ -64,6 +65,13 @@ class DynamicLandingPagesController extends ControllerBase { protected $geoPhpWrapper; + /** + * The current user. + * + * @var \Drupal\Core\Session\AccountProxyInterface + */ + protected $currentUser; + public const LICENCES = [ 'CC0-1.0' => [ 'url' => 'https://spdx.org/licenses/CC0-1.0',