add ability to get an action description from anywhere
This commit is contained in:
parent
12039d58fd
commit
3b90162010
@ -53,6 +53,16 @@ abstract class AbstractCleaner
|
|||||||
$this->actions = $actions;
|
$this->actions = $actions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get an action description.
|
||||||
|
*
|
||||||
|
* @return null|ActionDescriptor The action descriptor
|
||||||
|
*/
|
||||||
|
final public function get(string $id): ?ActionDescriptor
|
||||||
|
{
|
||||||
|
return $this->actions[$id] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize Cleaner properties.
|
* Initialize Cleaner properties.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user