Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d68d8dfa
Unverified
Commit
d68d8dfa
authored
Nov 27, 2019
by
Alex Pott
Browse files
Issue
#3062757
by voleger, Berdir, andypost: Remove deprecated legacy include files from Drupal 9
(cherry picked from commit
91f4c1ed
)
parent
035a770e
Changes
6
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Component/FileSecurity/FileSecurity.php
View file @
d68d8dfa
...
...
@@ -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_h
taccess()
* @see
\Drupal\Component\FileSecurity\FileSecurity::writeH
taccess()
*/
public
static
function
htaccessLines
(
$deny_public_access
=
TRUE
)
{
$lines
=
static
::
htaccessPreventExecution
();
...
...
core/lib/Drupal/Core/Form/form.api.php
View file @
d68d8dfa
...
...
@@ -120,7 +120,7 @@ function callback_batch_finished($success, $results, $operations) {
'#theme'
=>
'item_list'
,
'#items'
=>
$results
,
];
$message
.
=
d
rupal
_
render
(
$list
);
$message
.
=
\
D
rupal
::
service
(
'renderer'
)
->
render
(
$list
);
\
Drupal
::
messenger
()
->
addStatus
(
$message
);
}
else
{
...
...
core/lib/Drupal/Core/Utility/token.api.php
View file @
d68d8dfa
...
...
@@ -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'
]]
=
d
rupal
_
render
(
$title
);
$replacements
[
$context
[
'tokens'
][
'title'
]]
=
\
D
rupal
::
service
(
'renderer'
)
->
render
(
$title
);
}
}
}
...
...
core/modules/file/file.module
View file @
d68d8dfa
...
...
@@ -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
_d
ata()
* @see
\Drupal\Core\File\FileSystemInterface::
save
D
ata()
*/
function
file_save_data
(
$data
,
$destination
=
NULL
,
$replace
=
FileSystemInterface
::
EXISTS_RENAME
)
{
$user
=
\
Drupal
::
currentUser
();
...
...
core/modules/toolbar/src/Controller/ToolbarController.php
View file @
d68d8dfa
...
...
@@ -63,7 +63,7 @@ public function checkSubTreeAccess($hash) {
* @return array
* The updated renderable array.
*
* @see
d
rupal
_
render()
* @see
\D
rupal
\Core\Render\RendererInterface::
render()
*/
public
static
function
preRenderAdministrationTray
(
array
$element
)
{
$menu_tree
=
\
Drupal
::
service
(
'toolbar.menu_tree'
);
...
...
core/tests/Drupal/TestSite/Commands/TestSiteTearDownCommand.php
View file @
d68d8dfa
...
...
@@ -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
_r
ecursive()
* @see
\Drupal\Core\File\FileSystemInterface::
delete
R
ecursive()
*/
protected
function
fileUnmanagedDeleteRecursive
(
$path
,
$callback
=
NULL
)
{
if
(
isset
(
$callback
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment