function file_file_video_presave
Implements hook_ENTITY_TYPE_presave().
File
-
core/
modules/ file/ file.module, line 773
Code
function file_file_video_presave(FileVideoFormatter $formatter) : void {
if ($formatter->getSetting('playsinline') === NULL) {
$formatter->setSetting('playsinline', FALSE);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.