Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_sites_all
Commits
2dd03688
Commit
2dd03688
authored
Jul 15, 2020
by
Liam Morland
Browse files
Coding standards
parent
0016e4c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/Routing/RouteSubscriber.php
src/Routing/RouteSubscriber.php
+1
-1
uw_sites_all.install
uw_sites_all.install
+2
-2
No files found.
src/Routing/RouteSubscriber.php
View file @
2dd03688
...
...
@@ -11,7 +11,7 @@ use Symfony\Component\Routing\RouteCollection;
class
RouteSubscriber
extends
RouteSubscriberBase
{
/**
*
*
Change title for content creation.
*/
protected
function
alterRoutes
(
RouteCollection
$collection
)
{
if
(
$route
=
$collection
->
get
(
'workbench.all_content'
))
{
...
...
uw_sites_all.install
View file @
2dd03688
...
...
@@ -24,11 +24,11 @@ function uw_sites_all_install() {
$feed
->
save
();
}
// Make sure the theme is installed
// Make sure the theme is installed
.
$theme_handler
=
\
Drupal
::
service
(
'theme_handler'
);
$theme_handler
->
install
([
'uw_theme_admin'
]);
// Set it as the admin theme
// Set it as the admin theme
.
$config
=
\
Drupal
::
service
(
'config.factory'
)
->
getEditable
(
'system.theme'
);
$config
->
set
(
'admin'
,
'uw_theme_admin'
)
->
save
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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