public function onSitePreCreate(SiteEvent $event)
    {
        $site = $event->getSite();

        if (!empty($site->group_id)) {
            return; // Someone took care of this for us
        }

        $site->group_id = $this->findMostRelevantGroupId();
    }
public function onSitePreCreate(SiteEvent $event)
    {
        $site = $event->getSite();

        if (!empty($site->group_id)) {
            return; // Someone took care of this for us
        }

        $site->group_id = $this->findMostRelevantGroupId();
    }
public function onSitePreCreate ( SiteEvent $ event ) { $ site = $ event -> getSite ( ) ; if ( ! empty ( $ site -> group_id ) ) { return ; // Someone took care of this for us } $ site -> group_id = $ this -> findMostRelevantGroupId ( ) ; }
Sets the most relevant 'group_id' property values
Sets the most relevant group_id property values