Commit 91f4c1ed authored by alexpott's avatar alexpott

Issue #3062757 by voleger, Berdir, andypost: Remove deprecated legacy include files from Drupal 9

parent b36cfe85
......@@ -41,7 +41,7 @@ public static function writeHtaccess($directory, $deny_public_access = TRUE, $fo
* @return string
* The desired contents of the .htaccess file.
*
* @see file_save_htaccess()
* @see \Drupal\Component\FileSecurity\FileSecurity::writeHtaccess()
*/
public static function htaccessLines($deny_public_access = TRUE) {
$lines = static::htaccessPreventExecution();
......
......@@ -120,7 +120,7 @@ function callback_batch_finished($success, $results, $operations) {
'#theme' => 'item_list',
'#items' => $results,
];
$message .= drupal_render($list);
$message .= \Drupal::service('renderer')->render($list);
\Drupal::messenger()->addStatus($message);
}
else {
......
......@@ -166,7 +166,7 @@ function hook_tokens_alter(array &$replacements, array $context, \Drupal\Core\Re
// of a field (field_title).
if (isset($context['tokens']['title'])) {
$title = $node->field_title->view('default');
$replacements[$context['tokens']['title']] = drupal_render($title);
$replacements[$context['tokens']['title']] = \Drupal::service('renderer')->render($title);
}
}
}
......
......@@ -155,7 +155,7 @@ function file_load($fid, $reset = FALSE) {
* @return \Drupal\file\FileInterface|false
* File entity if the copy is successful, or FALSE in the event of an error.
*
* @see file_unmanaged_copy()
* @see \Drupal\Core\File\FileSystemInterface::copy()
* @see hook_file_copy()
*/
function file_copy(FileInterface $source, $destination = NULL, $replace = FileSystemInterface::EXISTS_RENAME) {
......@@ -565,7 +565,7 @@ function file_validate_image_resolution(FileInterface $file, $maximum_dimensions
* @return \Drupal\file\FileInterface|false
* A file entity, or FALSE on error.
*
* @see file_unmanaged_save_data()
* @see \Drupal\Core\File\FileSystemInterface::saveData()
*/
function file_save_data($data, $destination = NULL, $replace = FileSystemInterface::EXISTS_RENAME) {
$user = \Drupal::currentUser();
......
......@@ -63,7 +63,7 @@ public function checkSubTreeAccess($hash) {
* @return array
* The updated renderable array.
*
* @see drupal_render()
* @see \Drupal\Core\Render\RendererInterface::render()
*/
public static function preRenderAdministrationTray(array $element) {
$menu_tree = \Drupal::service('toolbar.menu_tree');
......
......@@ -110,7 +110,7 @@ protected function tearDown(TestDatabase $test_database, $db_url) {
* TRUE for success or if path does not exist, FALSE in the event of an
* error.
*
* @see file_unmanaged_delete_recursive()
* @see \Drupal\Core\File\FileSystemInterface::deleteRecursive()
*/
protected function fileUnmanagedDeleteRecursive($path, $callback = NULL) {
if (isset($callback)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment