public function destroyManialinkActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                unset($this->actions[$actionId]);
                unset($this->manialinkByAction[$actionId]);
            }

            unset($this->actionsByManialink[$manialink->getId()]);
        }
    }
public function destroyManialinkActions(ManialinkInterface $manialink)
    {
        if (isset($this->actionsByManialink[$manialink->getId()])) {
            foreach ($this->actionsByManialink[$manialink->getId()] as $actionId => $action) {
                unset($this->actions[$actionId]);
                unset($this->manialinkByAction[$actionId]);
            }

            unset($this->actionsByManialink[$manialink->getId()]);
        }
    }
public function destroyManialinkActions ( ManialinkInterface $ manialink ) { if ( isset ( $ this -> actionsByManialink [ $ manialink -> getId ( ) ] ) ) { foreach ( $ this -> actionsByManialink [ $ manialink -> getId ( ) ] as $ actionId => $ action ) { unset ( $ this -> actions [ $ actionId ] ) ; unset ( $ this -> manialinkByAction [ $ actionId ] ) ; } unset ( $ this -> actionsByManialink [ $ manialink -> getId ( ) ] ) ; } }
Destroy all actions for a manialink.

@param ManialinkInterface $manialink
Destroy all actions for a manialink .