src/Sulu/Bundle/ContactBundle/Controller/AbstractMediaController.php
private function getFieldDescriptors($entityName, $id)
    {
        if (null === $this->fieldDescriptors) {
            $this->initFieldDescriptors($entityName, $id);
        }

        return $this->fieldDescriptors;
    }
private function getFieldDescriptors($entityName, $id)
    {
        if (null === $this->fieldDescriptors) {
            $this->initFieldDescriptors($entityName, $id);
        }

        return $this->fieldDescriptors;
    }
private function getFieldDescriptors ( $ entityName , $ id ) { if ( null === $ this -> fieldDescriptors ) { $ this -> initFieldDescriptors ( $ entityName , $ id ) ; } return $ this -> fieldDescriptors ; }
Returns the field-descriptors. Ensures that the descriptors get only instantiated once.

@param $entityName

@return DoctrineFieldDescriptor[]
Returns the field - descriptors . Ensures that the descriptors get only instantiated once .