Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
WCMS
uw_fdsu_theme_resp
Commits
033527dd
Commit
033527dd
authored
4 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4199: coding standards
parent
52061855
No related branches found
No related tags found
1 merge request
!7
Feature/istwcms 4199 ebremner menu items count
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/field.inc
+1
-1
1 addition, 1 deletion
includes/field.inc
includes/navigation.inc
+9
-8
9 additions, 8 deletions
includes/navigation.inc
with
10 additions
and
9 deletions
includes/field.inc
+
1
−
1
View file @
033527dd
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*/
*/
/**
/**
*
*
Implements hook_theme_suggestions_field_alter().
*/
*/
function
gesso_theme_suggestions_field_alter
(
&
$suggestions
,
$variables
)
{
function
gesso_theme_suggestions_field_alter
(
&
$suggestions
,
$variables
)
{
$suggestions
[]
=
'field__node__'
.
$variables
[
'element'
][
'#field_name'
]
.
'__'
.
$variables
[
'element'
][
'#bundle'
]
.
'__'
.
$variables
[
'element'
][
'#view_mode'
];
$suggestions
[]
=
'field__node__'
.
$variables
[
'element'
][
'#field_name'
]
.
'__'
.
$variables
[
'element'
][
'#bundle'
]
.
'__'
.
$variables
[
'element'
][
'#view_mode'
];
...
...
This diff is collapsed.
Click to expand it.
includes/navigation.inc
+
9
−
8
View file @
033527dd
...
@@ -2,25 +2,26 @@
...
@@ -2,25 +2,26 @@
/**
/**
* @file
* @file
*/
* Navigation template functions.
/**
* Implements theme_preprocess_menu_local_tasks()
*
* @param $variables
*/
*/
use
Drupal\Component\Utility\Html
;
use
Drupal\Component\Utility\Html
;
/**
/**
*
*
Implements hook_reprocess_menu_local_tasks().
*/
*/
function
gesso_preprocess_menu_local_tasks
(
&
$variables
)
{
function
gesso_preprocess_menu_local_tasks
(
&
$variables
)
{
foreach
([
'primary'
,
'secondary'
]
as
$type
)
{
foreach
([
'primary'
,
'secondary'
]
as
$type
)
{
$tabs
=
[];
$tabs
=
[];
// Sort the tabs by #weight.
// Sort the tabs by #weight.
uasort
(
$variables
[
$type
],
[
'Drupal\Component\Utility\SortArray'
,
'sortByWeightProperty'
]);
uasort
(
$variables
[
$type
],
[
'Drupal\Component\Utility\SortArray'
,
'sortByWeightProperty'
,
]
);
foreach
(
array_keys
(
$variables
[
$type
])
as
$key
)
{
foreach
(
array_keys
(
$variables
[
$type
])
as
$key
)
{
// Add the tab to a new array.
// Add the tab to a new array.
...
...
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