Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
b9c64cff
Commit
b9c64cff
authored
9 years ago
by
Jess
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2470936
by googletorp, meramo, Xano: Add proper @return tags to functions' PHPDoc comments
parent
b986c827
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Ajax/CssCommand.php
+2
-0
2 additions, 0 deletions
core/lib/Drupal/Core/Ajax/CssCommand.php
core/lib/Drupal/Core/Asset/CssOptimizer.php
+4
-0
4 additions, 0 deletions
core/lib/Drupal/Core/Asset/CssOptimizer.php
with
6 additions
and
0 deletions
core/lib/Drupal/Core/Ajax/CssCommand.php
+
2
−
0
View file @
b9c64cff
...
...
@@ -61,6 +61,8 @@ public function __construct($selector, array $css = array()) {
* The CSS property to be changed.
* @param $value
* The new value of the CSS property.
*
* @return $this
*/
public
function
setProperty
(
$property
,
$value
)
{
$this
->
css
[
$property
]
=
$value
;
...
...
This diff is collapsed.
Click to expand it.
core/lib/Drupal/Core/Asset/CssOptimizer.php
+
4
−
0
View file @
b9c64cff
...
...
@@ -124,6 +124,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
* @param array $matches
* An array of matches by a preg_replace_callback() call that scans for
* @import-ed CSS files, except for external CSS files.
*
* @return
* The contents of the CSS file at $matches[1], with corrected paths.
*
...
...
@@ -220,6 +221,9 @@ protected function processCss($contents, $optimize = FALSE) {
* Note: the only reason this method is public is so color.module can call it;
* it is not on the AssetOptimizerInterface, so future refactorings can make
* it protected.
*
* @return string
* The file path.
*/
public
function
rewriteFileURI
(
$matches
)
{
// Prefix with base and remove '../' segments where possible.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment