The method first checks if the action ID has been declared in Controller::actions. If so,
it will use the configuration declared there to create the action object.
If not, it will look for a controller method whose name is in the format of actionXyz
where Xyz stands for the action ID. If found, an InlineAction representing that
method will be created and returned.
public createAction ( string $id ) : |
||
$id | string | the action ID. |
return | the newly created action instance. Null if the ID doesn't resolve into any action. |