src/Container.php
private function findRuleClass($nid) {
        if (!isset($this->rules[$nid])) {
            return null;
        } elseif (!empty($this->rules[$nid]['aliasOf'])) {
            return $this->findRuleClass($this->rules[$nid]['aliasOf']);
        } elseif (!empty($this->rules[$nid]['class'])) {
            return $this->rules[$nid]['class'];
        }

        return null;
    }
private function findRuleClass($nid) {
        if (!isset($this->rules[$nid])) {
            return null;
        } elseif (!empty($this->rules[$nid]['aliasOf'])) {
            return $this->findRuleClass($this->rules[$nid]['aliasOf']);
        } elseif (!empty($this->rules[$nid]['class'])) {
            return $this->rules[$nid]['class'];
        }

        return null;
    }
private function findRuleClass ( $ nid ) { if ( ! isset ( $ this -> rules [ $ nid ] ) ) { return null ; } elseif ( ! empty ( $ this -> rules [ $ nid ] [ 'aliasOf' ] ) ) { return $ this -> findRuleClass ( $ this -> rules [ $ nid ] [ 'aliasOf' ] ) ; } elseif ( ! empty ( $ this -> rules [ $ nid ] [ 'class' ] ) ) { return $ this -> rules [ $ nid ] [ 'class' ] ; } return null ; }
Find the class implemented by an ID.

This tries to see if a rule exists for a normalized ID and what class it evaluates to.

@param string $nid The normalized ID to look up.
@return string|null Returns the name of the class associated with the rule or **null** if one could not be found.
Find the class implemented by an ID .