/** * Adds Row Action * * @param Action\RowActionInterface $action * * @return self */ public function addRowAction(RowActionInterface $action) { if ($action->getRole() === null || $this->securityContext->isGranted($action->getRole())) { $this->rowActions[$action->getColumn()][] = $action; } return $this; }
/** * @param RowActionInterface $action * * @return $this */ public function addAction(RowActionInterface $action) { $this->actions[$action->getColumn()][] = $action; return $this; }