protected function AddFormBase::prepareMediaEntityForSave in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::prepareMediaEntityForSave()
- 9 core/modules/media_library/src/Form/AddFormBase.php \Drupal\media_library\Form\AddFormBase::prepareMediaEntityForSave()
Prepares a created media item to be permanently saved.
Parameters
\Drupal\media\MediaInterface $media: The unsaved media item.
1 call to AddFormBase::prepareMediaEntityForSave()
- AddFormBase::submitForm in core/
modules/ media_library/ src/ Form/ AddFormBase.php - Form submission handler.
File
- core/
modules/ media_library/ src/ Form/ AddFormBase.php, line 547
Class
- AddFormBase
- Provides a base class for creating media items from within the media library.
Namespace
Drupal\media_library\FormCode
protected function prepareMediaEntityForSave(MediaInterface $media) {
// Intentionally empty by default.
}