public function populateCmsCategories(\Zend\EventManager\Event $e)
    {
        $catsArray = $e->getParam('categories');

        $gameService = $e->getTarget()->getServiceManager()->get('playgroundgame_game_service');
        $games       = $gameService->getActiveGames(false);

        foreach ($games as $game) {
            $catsArray[$game->getIdentifier()] = 'Pg Game - '.$game->getIdentifier();
        }

        return $catsArray;
    }
public function populateCmsCategories(\Zend\EventManager\Event $e)
    {
        $catsArray = $e->getParam('categories');

        $gameService = $e->getTarget()->getServiceManager()->get('playgroundgame_game_service');
        $games       = $gameService->getActiveGames(false);

        foreach ($games as $game) {
            $catsArray[$game->getIdentifier()] = 'Pg Game - '.$game->getIdentifier();
        }

        return $catsArray;
    }
public function populateCmsCategories ( \ Zend \ EventManager \ Event $ e ) { $ catsArray = $ e -> getParam ( 'categories' ) ; $ gameService = $ e -> getTarget ( ) -> getServiceManager ( ) -> get ( 'playgroundgame_game_service' ) ; $ games = $ gameService -> getActiveGames ( false ) ; foreach ( $ games as $ game ) { $ catsArray [ $ game -> getIdentifier ( ) ] = 'Pg Game - ' . $ game -> getIdentifier ( ) ; } return $ catsArray ; }
This method add the games to the cms categories of pages
not that satisfied neither

@param  EventManager $e
@return array
This method add the games to the cms categories of pages not that satisfied neither