function domain_test_domain_operations in Domain Access 8
Implements hook_domain_operations().
File
- domain/
tests/ modules/ domain_test/ domain_test.module, line 40 - Domain hook test module.
Code
function domain_test_domain_operations(DomainInterface $domain) {
$operations = [];
// Add aliases to the list.
$id = $domain
->id();
$operations['domain_test'] = [
'title' => t('Test'),
'url' => Url::fromRoute('entity.domain.edit_form', [
'domain' => $id,
]),
'weight' => 80,
];
return $operations;
}