Skip to content
Snippets Groups Projects
Commit ca752792 authored by Eric Bremner's avatar Eric Bremner Committed by Igor Biki
Browse files

ISTWCMS-5195: coding standards

parent cebbb408
No related branches found
No related tags found
1 merge request!169Feature/istwcms 5195 ebremner node theming
...@@ -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.
......
...@@ -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;
......
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