You are here

function workflow_install in Workflow 8

Same name and namespace in other branches
  1. 5.2 workflow.install \workflow_install()
  2. 5 workflow.install \workflow_install()
  3. 6.2 workflow.install \workflow_install()
  4. 6 workflow.install \workflow_install()
  5. 7 workflow.install \workflow_install()

Implements hook_install().

File

./workflow.install, line 13
Install, update and uninstall functions for the workflow module.

Code

function workflow_install() {
  $url = Url::fromRoute('user.admin_permissions', [], [
    'fragment' => 'module-workflow',
  ]);
  $message = t("Thanks for using Workflow module.\n    To start using a Workflow, add a Workflow Field to your entity.\n    Please review which roles may 'participate in workflows'\n    <a href=':url'>on the Permissions page</a>.", [
    ':url' => $url
      ->toString(),
  ]);
  \Drupal::messenger()
    ->addStatus($message);
}