function contact_category_uri

Entity URI callback.

Parameters

Drupal\contact\Plugin\Core\Entity\Category $category: A contact category entity.

Return value

array An array with 'path' as the key and the path to the category as the value.

File

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

Code

function contact_category_uri(Category $category) {
  return array(
    'path' => 'admin/structure/contact/manage/' . $category
      ->id(),
  );
}