This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
[SDPAP-7925]add config files #34
Merged
Merged
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6f31c75
add config files
yeniatencio 638bf77
move config files
yeniatencio 110b48f
Added hook update to change publication author field cardinality and …
yeniatencio 19bca4c
Fixed lint errors
yeniatencio ac1ccc5
Updated field description
yeniatencio ea63355
Check if field type is an entity reference
yeniatencio 90d2934
remove uuid
yeniatencio 69d3403
moved to install
yeniatencio f11b582
fixed lint
yeniatencio 606b59c
clean up
yeniatencio 661466a
fixed lint
yeniatencio 307b118
removed const
yeniatencio b0fc836
fix lint
yeniatencio b732dd1
fix lint
yeniatencio 89cda83
added holder text in publication author field
yeniatencio 180c3de
update help text
yeniatencio b859f11
updated help text
yeniatencio a6af868
moved if conditional
yeniatencio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
langcode: en | ||
status: true | ||
dependencies: { } | ||
name: Organisation | ||
vid: organisation | ||
description: 'Currently used for ''Publication author'' non-mandatory field' | ||
weight: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Drupal\tide_publication; | ||
|
||
use Drupal\taxonomy\Entity\Vocabulary; | ||
|
||
/** | ||
* Tide publication modules operations. | ||
*/ | ||
class TidePublicationOperation { | ||
|
||
/** | ||
* Creates a new vocabulary. | ||
* | ||
* @param string $vocabulary | ||
* The new vocabulary. | ||
*/ | ||
public function createVocabulary(string $vocabulary) { | ||
$vocabulary = Vocabulary::create([ | ||
'vid' => $vocabulary, | ||
'description' => '', | ||
'name' => ucfirst($vocabulary), | ||
]); | ||
$vocabulary->save(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This helper function we can keep, cause this can be used for creating any other vocabulary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good example of a code reuse pattern, good one @yeniatencio