function webform_node_entity_type_alter in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_node/webform_node.module \webform_node_entity_type_alter()
Implements hook_entity_type_alter().
File
- modules/
webform_node/ webform_node.module, line 24 - Provides a webform content type which allows webforms to be integrated into a website as nodes.
Code
function webform_node_entity_type_alter(array &$entity_types) {
if (isset($entity_types['webform'])) {
/** @var \Drupal\Core\Entity\ContentEntityTypeInterface $webform_entity_type */
$webform_entity_type = $entity_types['webform'];
$webform_entity_type
->setLinkTemplate('references', '/admin/structure/webform/manage/{webform}/references');
}
}