public function destroyNotPermanentActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                if (!$action->isPermanent()) {
                    $this->destroyAction($actionId);
                }
            }
        }
    }
public function destroyNotPermanentActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                if (!$action->isPermanent()) {
                    $this->destroyAction($actionId);
                }
            }
        }
    }
public function destroyNotPermanentActions ( ManialinkInterface $ manialink ) { if ( isset ( $ this -> actionsByManialink [ $ manialink -> getId ( ) ] ) ) { foreach ( $ this -> actionsByManialink [ $ manialink -> getId ( ) ] as $ actionId => $ action ) { if ( ! $ action -> isPermanent ( ) ) { $ this -> destroyAction ( $ actionId ) ; } } } }
Destroy actions that are not permanent actions.

@param ManialinkInterface $manialink
Destroy actions that are not permanent actions .