GB_Dependencies::add_data
Add extra item data.
Adds data to a registered item.
Signature
public function add_data(string
$handle,
string
$key,
mixed
$value )
Parameters
$handle
— string
Name of the item. Should be unique.$key
— string
The data key.$value
— mixed
The data value.
Returns
- bool
- True on success, false on failure.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
265 | 12 | error | Method name "GB_Dependencies::add_data" is not in camel caps format |
267 | 9 | error | Inline control structures are not allowed |