public function addRowAction(RowActionInterface $action)
    {
        if ($action->getRole() === null || $this->securityContext->isGranted($action->getRole())) {
            $this->rowActions[$action->getColumn()][] = $action;
        }

        return $this;
    }
public function addRowAction(RowActionInterface $action)
    {
        if ($action->getRole() === null || $this->securityContext->isGranted($action->getRole())) {
            $this->rowActions[$action->getColumn()][] = $action;
        }

        return $this;
    }
public function addRowAction ( RowActionInterface $ action ) { if ( $ action -> getRole ( ) === null || $ this -> securityContext -> isGranted ( $ action -> getRole ( ) ) ) { $ this -> rowActions [ $ action -> getColumn ( ) ] [ ] = $ action ; } return $ this ; }
Adds Row Action.

@param Action\RowActionInterface $action

@return self
Adds Row Action .