Skip to content
Snippets Groups Projects
Commit 45402b80 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5195: coding standards

parent f1acfde7
No related branches found
No related tags found
1 merge request!172Feature/istwcms 5128 ebremner theme node services
......@@ -38,9 +38,7 @@ class UwNodeContent {
* @param string $view_mode
* The view mode.
* @param string $content
* The content to get (either layout builder or summary)
* @param array $featured_image
* Whether this node has a featured image or not.
* The content to get (either layout builder or summary).
*
* @return array
* Array of content to get from the node.
......
......@@ -3,7 +3,6 @@
namespace Drupal\uw_cfg_common\Service;
use Drupal\Component\Utility\UrlHelper;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\EntityReferenceFieldItemListInterface;
use Drupal\Core\Url;
use Drupal\node\Entity\Node;
......@@ -33,6 +32,11 @@ class UwNodeFieldValue {
*/
protected $requestStack;
/**
* The UW Service.
*
* @var UWServiceInterface
*/
protected $uwService;
/**
......@@ -40,10 +44,12 @@ class UwNodeFieldValue {
*
* @param \Symfony\Component\HttpFoundation\RequestStack $requestStack
* The current request stack.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager
* The entity type manager.
* @param \Drupal\uw_cfg_common\Service\UWServiceInterface $uwService
* 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->entityTypeManager = $entityTypeManager;
$this->uwService = $uwService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment