Project

General

Profile

Actions

Feature #23332

open

Add param_value to HookContext

Added by Martin Bacovsky over 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Usually we need to get param value or nil if the param is not defined.

We define helper method for this in the hooks but would be great if it is in the HookContext

def param_value(mod, name)
  param(mod, name).value if param(mod, name)
end

Related issues 2 (1 open1 closed)

Has duplicate Installer - Refactor #29806: Move param_value to KafoDuplicateActions
Blocks Installer - Refactor #27371: Move Installer hook helpers to Kafo where they make senseNewActions
Actions

Also available in: Atom PDF