protected function EntityLegalDocumentForm::hasAccessToPathAliases in Entity Legal 3.0.x
1 call to EntityLegalDocumentForm::hasAccessToPathAliases()
- EntityLegalDocumentForm::formPathSettings in src/
Form/ EntityLegalDocumentForm.php - Add path and pathauto settings to an existing legal document form.
File
- src/
Form/ EntityLegalDocumentForm.php, line 374
Class
- EntityLegalDocumentForm
- Base form for contact form edit forms.
Namespace
Drupal\entity_legal\FormCode
protected function hasAccessToPathAliases() : bool {
return $this->currentUser
->hasPermission('create url aliases') || $this->currentUser
->hasPermission('administer url aliases');
}