public function objectAction(string $name) : Action\ObjectActionDefiner
    {
        return new ObjectActionDefiner(
            $this->dataSource,
            $this->authSystem,
            $this->requiredPermissions,
            $name,
            function (IObjectAction $action) {
                $this->actions[$action->getName()] = $action;
            }
        );
    }
public function objectAction(string $name) : Action\ObjectActionDefiner
    {
        return new ObjectActionDefiner(
            $this->dataSource,
            $this->authSystem,
            $this->requiredPermissions,
            $name,
            function (IObjectAction $action) {
                $this->actions[$action->getName()] = $action;
            }
        );
    }
public function objectAction ( string $ name ) : Action \ ObjectActionDefiner { return new ObjectActionDefiner ( $ this -> dataSource , $ this -> authSystem , $ this -> requiredPermissions , $ name , function ( IObjectAction $ action ) { $ this -> actions [ $ action -> getName ( ) ] = $ action ; } ) ; }
Defines an action that operates on an object from the data source.

This creates a parameterized action that with a staged form
with the fist form stage loading the entity

@param string $name

@return ObjectActionDefiner
Defines an action that operates on an object from the data source .