Add guest actions which don't require a logged in user.

@param array|string $guestActions The guest action to add.
@return void
769350
public function addGuestActions($guestActions)
    {
        if (!is_array($guestActions)) {
            $guestActions = [$guestActions];
        }

        $this->_guestActions = Hash::merge($this->_guestActions, $guestActions);
    }
1271825
public function addAction(ActionInterface $action)
  {
    $name = $action->getName();
    $value = $action->getValue();
    $type = $action->getType();

    switch ($type) {
      case ActionInterface::ACTION_FUNCTION:
        $this->functions[] = new \Twig_SimpleFunction($name, $value);
        break;
      case ActionInterface::ACTION_FILTER:
        $this->filters[] = new \Twig_SimpleFilter($name, $value);
        break;
      case ActionInterface::ACTION_TEST:
        $this->tests[] = new \Twig_SimpleTest($name, $value);
        break;
      default:
        throw new \Twig_Error("Unknown twig callable type ($type)");
    }
  }
244729
public function attachAction(RequiredActionInterface $action)
    {
        $actions = $this->getRequiredActions();
        $actions[] = $action;
        $this->setOption(self::OPTION_REQUIRED_ACTIONS, $actions);
    }
1064816
def __add_actions(self):
        

        LOGGER.debug("> Adding '{0}' Component actions.".format(self.__class__.__name__))

        add_project_action = self.__engine.actions_manager.get_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Add Project ...")
        remove_project_action = self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Remove Project",
            slot=self.__view_remove_project_action__triggered)
        self.__script_editor.file_menu.insertAction(add_project_action, remove_project_action)
        self.__script_editor.file_menu.removeAction(add_project_action)
        self.__script_editor.file_menu.insertAction(remove_project_action, add_project_action)
666565
public function addHolidays($holidays)
    {
        foreach ($holidays as $holiday) {
            if ($holiday instanceof DateRange) {
                $this->addHolidays($holiday);

                continue;
            }

            $this->addHoliday($holiday);
        }
    }
910361
public void addDefaultAction(CmsListDefaultAction defaultAction) {

        if (m_listId != null) {
            // set the list id
            defaultAction.setListId(m_listId);
        }
        // set the column id
        defaultAction.setColumnForLink(this);

        m_defaultActions.add(defaultAction);
    }
912395
public void setManagedActions(java.util.Collection<ManagedAction> managedActions) {
        if (managedActions == null) {
            this.managedActions = null;
            return;
        }

        this.managedActions = new com.amazonaws.internal.SdkInternalList<ManagedAction>(managedActions);
    }
796975
public function addAction($line1, $line2 = null)
    {
        if (!is_array($this->actions)) {
            $this->actions = [];
        }

        $this->actions[] = $line1;

        if ($line2 !== null) {
            $this->actions[] = $line2;
        }
    }
943546
public function setActions($actions): self
    {
        $this->clearActions();

        foreach ($actions as $action) {
            $this->addAction($action);
        }

        return $this;
    }
769082
protected function addRoles(Collection $roles)
    {
        foreach ($roles as $role) {
            $this->roles[] = $role->token;
            $this->addPermissions($role->permissions);
        }
    }
876134
public function addRoutes($routes = array())
    {
        if (!$this->isRegistered()) {
            $this->registerWordpressAction();
        }

        $this->route->addPossibilities($routes);
    }
957350
public function addRoles(Collection $roles)
    {
        foreach($roles as $role){
            $this->roles->add($role);
        }
        
    }
533731
public function add_primary_action($action) {
        if ($action instanceof action_link || $action instanceof pix_icon) {
            $action->attributes['role'] = 'menuitem';
            if ($action instanceof action_menu_link) {
                $action->actionmenu = $this;
            }
        }
        $this->primaryactions[] = $action;
    }
714235
public function addAction($action)
    {
        if (! is_array($action) && ! $action instanceof AttachmentAction) {
            throw ActionCannotBeAdded::invalidType();
        }

        if (is_array($action)) {
            $name = $action['name'];
            $text = $action['text'];
            $type = $action['type'];

            $action = AttachmentAction::create($name, $text, $type);
        }

        $this->actions->push($action);

        return $this;
    }
781662
protected function addTableAction($action, $row, $btn)
    {
        if (empty($this->tableActions)) {
            $this->tableActions = new Collection();
        }
        $path = uri();
        Event::fire('datatables:' . $path . ':before.action.' . $action, [$this->tableActions, $row]);
        Event::fire(new BeforeTableAction($path, $action, $row, $this->tableActions));
        $this->tableActions->push($btn);
        Event::fire('datatables:' . $path . ':after.action.' . $action, [$this->tableActions, $row]);
        Event::fire(new AfterTableAction($path, $action, $row, $this->tableActions));
        Event::fire('datatables.' . get_class($this) . '.after.action.' . $action, [$this->tableActions, $row]);
        return $this;
    }
1338908
public function addAction(array $action)
    {
        $actions = $this->getAction();

        $actions[] = $action;

        return $this->setAction($actions);
    }
877674
public function write(array $events = []): void
    {
        if ($this->isRolledBack) {
            throw new \RuntimeException('Cannot commit a rolledback transaction');
        }

        if ($this->isCommitted) {
            throw new \RuntimeException('Transaction is already committed');
        }

        $this->connection->transactionalWrite($this, $events, $this->userCredentials);
    }