You are here

public function VariantInterface::access in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Display/VariantInterface.php \Drupal\Core\Display\VariantInterface::access()

Determines if this display variant is accessible.

Parameters

\Drupal\Core\Session\AccountInterface $account: (optional) The user for which to check access, or NULL to check access for the current user. Defaults to NULL.

Return value

bool TRUE if this display variant is accessible, FALSE otherwise.

1 method overrides VariantInterface::access()
VariantBase::access in core/lib/Drupal/Core/Display/VariantBase.php
Determines if this display variant is accessible.

File

core/lib/Drupal/Core/Display/VariantInterface.php, line 78
Contains \Drupal\Core\Display\VariantInterface.

Class

VariantInterface
Provides an interface for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function access(AccountInterface $account = NULL);