Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
colorbox-3183921
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Issue forks
colorbox-3183921
Commits
761b61d5
Commit
761b61d5
authored
Sep 12, 2020
by
Neslee Canil Pinto
Committed by
Neslee Canil Pinto
Sep 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3170600
by Neslee Canil Pinto: PHP Coding Standards in GalleryIdHelper.php file
parent
602c2b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
src/GalleryIdHelper.php
src/GalleryIdHelper.php
+14
-1
No files found.
src/GalleryIdHelper.php
View file @
761b61d5
...
...
@@ -16,17 +16,22 @@ use Drupal\Core\Utility\Token;
class
GalleryIdHelper
{
/**
*
@var null
*
The Gallery Token.
*
* @var null
*/
protected
$galleryToken
=
NULL
;
/**
* The Configuration Factory.
*
* @var \Drupal\Core\Config\ConfigFactoryInterface
*/
protected
$configFactory
;
/**
* The Token.
*
* @var \Drupal\Core\Utility\Token
*/
protected
$token
;
...
...
@@ -35,7 +40,9 @@ class GalleryIdHelper {
* GalleryIdHelper constructor.
*
* @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory
* The Configuration Factory.
* @param \Drupal\Core\Utility\Token $token
* The Token.
*/
public
function
__construct
(
ConfigFactoryInterface
$configFactory
,
Token
$token
)
{
$this
->
configFactory
=
$configFactory
;
...
...
@@ -43,11 +50,17 @@ class GalleryIdHelper {
}
/**
* Generate ID.
*
* @param \Drupal\Core\Entity\ContentEntityInterface $entity
* The Entity.
* @param \Drupal\Core\Field\FieldItemInterface $item
* The Item.
* @param array $settings
* The Settings.
*
* @return string
* Return string.
*/
public
function
generateId
(
ContentEntityInterface
$entity
,
FieldItemInterface
$item
,
array
$settings
)
{
$entity_bundle
=
$entity
->
bundle
();
...
...
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