contact_entity_type_alter

contact_entity_type_alter(array &$entity_types)

Implements hook_entity_type_alter().

File

core/modules/contact/contact.module, line 44
Enables the use of personal and site-wide contact forms.

Code

function contact_entity_type_alter(array &$entity_types) {
  /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */
  $entity_types['user']->setLinkTemplate('contact-form', '/user/{user}/contact');
}
doc_Drupal
2016-10-29 08:56:32
Comments
Leave a Comment

Please login to continue.