public function getDescriptor()
    {
        return [
            'constraint' => [
                'parent_id' => $this->getTaxonomyName() ? $this->getTaxonomy($this->getManager()->newEntity())->id : null,
            ],
        ];
    }
public function getDescriptor()
    {
        return [
            'constraint' => [
                'parent_id' => $this->getTaxonomyName() ? $this->getTaxonomy($this->getManager()->newEntity())->id : null,
            ],
        ];
    }
public function getDescriptor ( ) { return [ 'constraint' => [ 'parent_id' => $ this -> getTaxonomyName ( ) ? $ this -> getTaxonomy ( $ this -> getManager ( ) -> newEntity ( ) ) -> id : null , ] , ] ; }
Get descriptor.

@return array
Get descriptor .