function fillpdf_test_entity_operation in FillPDF 5.0.x
Same name and namespace in other branches
- 8.4 tests/modules/fillpdf_test/fillpdf_test.module \fillpdf_test_entity_operation()
Implements hook_entity_operation().
File
- tests/
modules/ fillpdf_test/ fillpdf_test.module, line 63 - Contains fillpdf_test.module.
Code
function fillpdf_test_entity_operation(EntityInterface $entity) {
if ($entity
->getEntityTypeId() == 'fillpdf_form') {
return [
'test' => [
'title' => t('Export configuration test'),
'url' => $entity
->toUrl('export-form'),
],
];
}
}