You are here

public function ForwardLink::isAllowed in Forward 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/DsField/ForwardLink.php \Drupal\forward\Plugin\DsField\ForwardLink::isAllowed()
  2. 8.2 src/Plugin/DsField/ForwardLink.php \Drupal\forward\Plugin\DsField\ForwardLink::isAllowed()

File

src/Plugin/DsField/ForwardLink.php, line 87

Class

ForwardLink
Forward link plugin.

Namespace

Drupal\forward\Plugin\DsField

Code

public function isAllowed() {
  $config = $this
    ->getConfiguration();
  $entity = isset($config['entity']) ? $this
    ->entity() : NULL;
  return $this->accessChecker
    ->isAllowed($this->settings, $entity, $this
    ->viewMode(), $this
    ->getEntityTypeId(), $this
    ->bundle());
}