public function defaultChild()
    {
        $default = $this->config()->get('default_child');
        $allowed = $this->allowedChildren();
        if ($allowed) {
            if (!$default || !in_array($default, $allowed)) {
                $default = reset($allowed);
            }
            return $default;
        }
        return null;
    }
public function defaultChild()
    {
        $default = $this->config()->get('default_child');
        $allowed = $this->allowedChildren();
        if ($allowed) {
            if (!$default || !in_array($default, $allowed)) {
                $default = reset($allowed);
            }
            return $default;
        }
        return null;
    }
public function defaultChild ( ) { $ default = $ this -> config ( ) -> get ( 'default_child' ) ; $ allowed = $ this -> allowedChildren ( ) ; if ( $ allowed ) { if ( ! $ default || ! in_array ( $ default , $ allowed ) ) { $ default = reset ( $ allowed ) ; } return $ default ; } return null ; }
Returns the class name of the default class for children of this page.

@return string
Returns the class name of the default class for children of this page .