contact_entity_type_alter(array &$entity_types)
Implements hook_entity_type_alter().
function contact_entity_type_alter(array &$entity_types) { /** @var $entity_types \Drupal\Core\Entity\EntityTypeInterface[] */ $entity_types['user']->setLinkTemplate('contact-form', '/user/{user}/contact'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!contact!contact.module/function/contact_entity_type_alter/8.1.x