Error: Call to undefined method Drupal\naphies_files\Form\AddFileForm::getEntity() in Drupal\flysystem_gcs_cors\Element\FlysystemGcsCorsFile::processManagedFile() (line 55 of modules\contrib\flysystem_gcs_cors\src\Element\FlysystemGcsCorsFile.php).

Created on 31 October 2024, 15 days ago

Problem/Motivation

Error: Call to undefined method Drupal\naphies_files\Form\AddFileForm::getEntity() in Drupal\flysystem_gcs_cors\Element\FlysystemGcsCorsFile::processManagedFile() (line 55 of modules\contrib\flysystem_gcs_cors\src\Element\FlysystemGcsCorsFile.php).

Steps to reproduce

create custom element
$form['file_upload'] = [
'#type' => 'flysystem_gcs_cors_file',
'#upload_location' => 'cloud-storage://2024-10',
'#upload_validators' => [
'file_validate_extensions' => ['pdf'],
],
'#title' => $this->t('File'),
'#required' => TRUE,
];

πŸ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024