file.post_update.php

Same filename and directory in other branches
  1. 10 core/modules/file/file.post_update.php
  2. 11.x core/modules/file/file.post_update.php
  3. 9 core/modules/file/file.post_update.php

Post update functions for File.

File

core/modules/file/file.post_update.php

View source
<?php


/**
 * @file
 * Post update functions for File.
 */

use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Implements hook_removed_post_updates().
 */
function file_removed_post_updates() : array {
  return [
    'file_post_update_add_txt_if_allows_insecure_extensions' => '10.0.0',
    'file_post_update_add_permissions_to_roles' => '11.0.0',
    'file_post_update_add_default_filename_sanitization_configuration' => '11.0.0',
  ];
}

/**
 * Adds a value for the 'playsinline' setting of the 'file_video' formatter.
 *
 * @deprecated in drupal:12.3.0 and is removed from drupal:13.0.0. This was
 *   rolled back due to a bug in the implementation and is now a no-op function
 *   and is kept only to prevent errors when updating.
 *
 * @see https://www.drupal.org/project/drupal/issues/3533291
 */
function file_post_update_add_playsinline(array &$sandbox = []) : ?TranslatableMarkup {
  // No-op.
  return NULL;
}

Functions

Title Deprecated Summary
file_post_update_add_playsinline

in drupal:12.3.0 and is removed from drupal:13.0.0. This was rolled back due to a bug in the implementation and is now a no-op function and is kept only to prevent errors when updating.

Adds a value for the 'playsinline' setting of the 'file_video' formatter.
file_removed_post_updates Implements hook_removed_post_updates().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.