CRUDlex\SimpleFilesystemFileProcessor::getPath PHP Метод

getPath() защищенный Метод

Constructs a file system path for the given parameters for storing the file of the file field.
protected getPath ( string $entityName, Entity $entity, string $field ) : string
$entityName string the entity name
$entity Entity the entity
$field string the file field in the entity
Результат string the constructed path for storing the file of the file field
    protected function getPath($entityName, Entity $entity, $field)
    {
        return $this->basePath . $entity->getDefinition()->getField($field, 'path') . '/' . $entityName . '/' . $entity->get('id') . '/' . $field;
    }