Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
0fec25d1
Commit
0fec25d1
authored
2 years ago
by
herbdool
Browse files
Options
Downloads
Patches
Plain Diff
#4076
split up the theme method
parent
e9e7a2d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Utils/System/Drupal8.php
+4
-23
4 additions, 23 deletions
CRM/Utils/System/Drupal8.php
with
4 additions
and
23 deletions
CRM/Utils/System/Drupal8.php
+
4
−
23
View file @
0fec25d1
...
...
@@ -919,29 +919,10 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase {
* @inheritdoc
*/
public
function
theme
(
&
$content
,
$print
=
FALSE
,
$maintenance
=
FALSE
)
{
$ret
=
FALSE
;
if
(
!
$print
)
{
if
(
$maintenance
)
{
if
(
$region
=
CRM_Core_Region
::
instance
(
'html-header'
,
FALSE
))
{
CRM_Utils_System
::
addHTMLHead
(
$region
->
render
(
''
));
}
$renderer
=
\Drupal
::
service
(
'bare_html_page_renderer'
);
$response
=
$renderer
->
renderBarePage
(
$content
,
''
,
'maintenance_page'
);
print
$response
->
getContent
();
exit
();
}
$ret
=
TRUE
;
}
$out
=
$content
;
if
(
$ret
)
{
return
$out
;
}
else
{
print
$out
;
return
NULL
;
}
// @todo use Drupal "maintenance page" template and theme during installation
// or upgrade.
print
$content
;
return
NULL
;
}
}
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