public function ForwardForm::isAllowed in Forward 8
Same name and namespace in other branches
- 8.3 src/Plugin/DsField/ForwardForm.php \Drupal\forward\Plugin\DsField\ForwardForm::isAllowed()
- 8.2 src/Plugin/DsField/ForwardForm.php \Drupal\forward\Plugin\DsField\ForwardForm::isAllowed()
File
- src/
Plugin/ DsField/ ForwardForm.php, line 88
Class
- ForwardForm
- Forward form plugin.
Namespace
Drupal\forward\Plugin\DsFieldCode
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());
}