Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
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_cfg_common
Commits
45402b80
Commit
45402b80
authored
3 years ago
by
Eric Bremner
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5195: coding standards
parent
f1acfde7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!172
Feature/istwcms 5128 ebremner theme node services
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Service/UwNodeContent.php
+1
-3
1 addition, 3 deletions
src/Service/UwNodeContent.php
src/Service/UwNodeFieldValue.php
+8
-2
8 additions, 2 deletions
src/Service/UwNodeFieldValue.php
with
9 additions
and
5 deletions
src/Service/UwNodeContent.php
+
1
−
3
View file @
45402b80
...
@@ -38,9 +38,7 @@ class UwNodeContent {
...
@@ -38,9 +38,7 @@ class UwNodeContent {
* @param string $view_mode
* @param string $view_mode
* The view mode.
* The view mode.
* @param string $content
* @param string $content
* The content to get (either layout builder or summary)
* The content to get (either layout builder or summary).
* @param array $featured_image
* Whether this node has a featured image or not.
*
*
* @return array
* @return array
* Array of content to get from the node.
* Array of content to get from the node.
...
...
This diff is collapsed.
Click to expand it.
src/Service/UwNodeFieldValue.php
+
8
−
2
View file @
45402b80
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
namespace
Drupal\uw_cfg_common\Service
;
namespace
Drupal\uw_cfg_common\Service
;
use
Drupal\Component\Utility\UrlHelper
;
use
Drupal\Component\Utility\UrlHelper
;
use
Drupal\Core\Entity\EntityTypeInterface
;
use
Drupal\Core\Field\EntityReferenceFieldItemListInterface
;
use
Drupal\Core\Field\EntityReferenceFieldItemListInterface
;
use
Drupal\Core\Url
;
use
Drupal\Core\Url
;
use
Drupal\node\Entity\Node
;
use
Drupal\node\Entity\Node
;
...
@@ -33,6 +32,11 @@ class UwNodeFieldValue {
...
@@ -33,6 +32,11 @@ class UwNodeFieldValue {
*/
*/
protected
$requestStack
;
protected
$requestStack
;
/**
* The UW Service.
*
* @var UWServiceInterface
*/
protected
$uwService
;
protected
$uwService
;
/**
/**
...
@@ -40,10 +44,12 @@ class UwNodeFieldValue {
...
@@ -40,10 +44,12 @@ class UwNodeFieldValue {
*
*
* @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* The current request stack.
* The current request stack.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
* The entity type manager.
* @param \Drupal\uw_cfg_common\Service\UWServiceInterface $uwService
* @param \Drupal\uw_cfg_common\Service\UWServiceInterface $uwService
* The UW Service.
* The UW Service.
*/
*/
public
function
__construct
(
RequestStack
$requestStack
,
EntityTypeManagerInterface
$entityTypeManager
,
UWServiceInterface
$uwService
)
{
public
function
__construct
(
RequestStack
$requestStack
,
EntityTypeManagerInterface
$entityTypeManager
,
UWServiceInterface
$uwService
)
{
$this
->
requestStack
=
$requestStack
;
$this
->
requestStack
=
$requestStack
;
$this
->
entityTypeManager
=
$entityTypeManager
;
$this
->
entityTypeManager
=
$entityTypeManager
;
$this
->
uwService
=
$uwService
;
$this
->
uwService
=
$uwService
;
...
...
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