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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add config files * move config files * Added hook update to change publication author field cardinality and vocabulary * Fixed lint errors * Updated field description * Check if field type is an entity reference * remove uuid * moved to install * fixed lint * clean up * fixed lint * removed const * fix lint * fix lint * added holder text in publication author field * update help text * updated help text * moved if conditional
- Loading branch information
1 parent
a419a42
commit 69e8e8f
Showing
6 changed files
with
95 additions
and
4 deletions.
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
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