public function getDiscriminators()
    {
        if (null === $this->descriminators) {
            $this->descriminators = [];

            if (array_key_exists('_content_', $this->schemes)) {
                foreach (array_keys($this->schemes['_content_']) as $descriminator) {
                    $this->descriminators[] = 'BackBee\ClassContent\\'.$descriminator;

                    if (null !== $this->application->getEventDispatcher()) {
                        $this
                            ->application
                            ->getEventDispatcher()
                            ->addListener(
                                str_replace(NAMESPACE_SEPARATOR, '.', $descriminator).'.onflush',
                                ['BackBee\Event\Listener\RewritingListener', 'onFlushContent']
                            )
                        ;
                    }
                }
            }
        }

        return $this->descriminators;
    }
public function getDiscriminators()
    {
        if (null === $this->descriminators) {
            $this->descriminators = [];

            if (array_key_exists('_content_', $this->schemes)) {
                foreach (array_keys($this->schemes['_content_']) as $descriminator) {
                    $this->descriminators[] = 'BackBee\ClassContent\\'.$descriminator;

                    if (null !== $this->application->getEventDispatcher()) {
                        $this
                            ->application
                            ->getEventDispatcher()
                            ->addListener(
                                str_replace(NAMESPACE_SEPARATOR, '.', $descriminator).'.onflush',
                                ['BackBee\Event\Listener\RewritingListener', 'onFlushContent']
                            )
                        ;
                    }
                }
            }
        }

        return $this->descriminators;
    }
public function getDiscriminators ( ) { if ( null === $ this -> descriminators ) { $ this -> descriminators = [ ] ; if ( array_key_exists ( '_content_' , $ this -> schemes ) ) { foreach ( array_keys ( $ this -> schemes [ '_content_' ] ) as $ descriminator ) { $ this -> descriminators [ ] = 'BackBee\ClassContent\\' . $ descriminator ; if ( null !== $ this -> application -> getEventDispatcher ( ) ) { $ this -> application -> getEventDispatcher ( ) -> addListener ( str_replace ( NAMESPACE_SEPARATOR , '.' , $ descriminator ) . '.onflush' , [ 'BackBee\Event\Listener\RewritingListener' , 'onFlushContent' ] ) ; } } } } return $ this -> descriminators ; }
Returns the list of class content names used by one of schemes
Dynamically add a listener on descrimator.onflush event to RewritingListener.

@return array
Returns the list of class content names used by one of schemes Dynamically add a listener on descrimator . onflush event to RewritingListener .