You are here

public function ForwardAccessCheckerInterface::isAllowed in Forward 8.3

Same name and namespace in other branches
  1. 8 src/ForwardAccessCheckerInterface.php \Drupal\forward\ForwardAccessCheckerInterface::isAllowed()
  2. 8.2 src/ForwardAccessCheckerInterface.php \Drupal\forward\ForwardAccessCheckerInterface::isAllowed()

Checks whether a Forward link or form can be displayed on a given entity and view mode.

Parameters

array $settings: Array of settings.

\Drupal\Core\Entity\EntityInterface $entity: Entity for which the link is being built.

$view_mode: The view mode to check.

$entity_type: The entity_type to check if an entity is not available at the time the check needs to occur.

$bundle: The bundle to check if an entity is not available at the time the check needs to occur.

Return value

boolean Whether access is allowed or not.

1 method overrides ForwardAccessCheckerInterface::isAllowed()
ForwardAccessChecker::isAllowed in src/ForwardAccessChecker.php
Checks whether a Forward link or form can be displayed on a given entity and view mode.

File

src/ForwardAccessCheckerInterface.php, line 29

Class

ForwardAccessCheckerInterface
Defines an interface for checking access to Forward link or form display.

Namespace

Drupal\forward

Code

public function isAllowed(array $settings, EntityInterface $entity, $view_mode, $entity_type = NULL, $bundle = NULL);