Skip to content

Commit

Permalink
Add more pirate data and make nicknales a multi value field
Browse files Browse the repository at this point in the history
  • Loading branch information
pingevt committed Jan 19, 2024
1 parent f2c6a93 commit 4e3f484
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 6 deletions.
179 changes: 174 additions & 5 deletions modules/bc_api_example/bc_api_example.data.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ function bc_api_example_get_nationalities_data() {
'label' => 'Scotland',
'tid' => NULL,
],
'china' => [
'label' => 'China',
'tid' => NULL,
],
'united_states' => [
'label' => 'United States',
'tid' => NULL,
],
'united_kingdom' => [
'label' => 'United Kingdom',
'tid' => NULL,
],
'jamaica' => [
'label' => 'Jamaica',
'tid' => NULL,
],
'france' => [
'label' => 'France',
'tid' => NULL,
],
];
}

Expand Down Expand Up @@ -58,6 +78,38 @@ function bc_api_example_get_ships_data() {
'title' => 'Adventure Galley',
'nid' => NULL,
],
'red_flag_fleet' => [
'title' => 'Red Flag Fleet',
'nid' => NULL,
],
'fancy' => [
'title' => 'Fancy',
'nid' => NULL,
],
'the_ghost' => [
'title' => 'The Ghost',
'nid' => NULL,
],
'whydah_gally' => [
'title' => 'Whydah Gally',
'nid' => NULL,
],
'ranger' => [
'title' => 'Ranger',
'nid' => NULL,
],
'la_trompeuse' => [
'title' => 'La Trompeuse',
'nid' => NULL,
],
'pirate_queen' => [
'title' => 'pirate_queen',
'nid' => NULL,
],
'blessed_william' => [
'title' => 'Blessed William',
'nid' => NULL,
],
];
}

Expand All @@ -71,7 +123,7 @@ function bc_api_example_get_pirates_data() {
'status' => 1,
'title' => 'Edward Teach',
'body' => "",
'nickname' => "Blackbeard",
'nickname' => ["Blackbeard"],
'nationality' => ['england'],
'ships' => ['queen_anne'],
],
Expand All @@ -80,7 +132,7 @@ function bc_api_example_get_pirates_data() {
'status' => 1,
'title' => 'Bartholomew Roberts',
'body' => "",
'nickname' => "Black Bart",
'nickname' => ["Black Bart", "The Dread Pirate"],
'nationality' => ['wales'],
'ships' => ['royal_fortune'],
],
Expand All @@ -89,15 +141,15 @@ function bc_api_example_get_pirates_data() {
'status' => 1,
'title' => 'Sam Bellamy',
'body' => "",
'nickname' => "Black Sam",
'nickname' => ["Black Sam"],
'nationality' => ['england'],
'ships' => ['whydah'],
],
'stede_bonnet' => [
'nid' => NULL,
'status' => 1,
'title' => 'Stede Bonnet',
'nickname' => "The Gentleman Pirate",
'nickname' => ["The Gentleman Pirate"],
'body' => "Nicknamed \"The Gentleman Pirate\", Bonnet was born into a wealthy family before turning to piracy.",
'nationality' => ['barbados'],
'ships' => ['revenge'],
Expand All @@ -106,10 +158,127 @@ function bc_api_example_get_pirates_data() {
'nid' => NULL,
'status' => 1,
'title' => 'William Kidd',
'nickname' => "Captain",
'nickname' => ["Captain", "Captain Kidd"],
'body' => "Although modern historians dispute the legitimacy of his trial and execution, the rumor of Captain Kidd's buried treasure has served only to build a legend around the man as a great pirate. His property was claimed by the crown and given to the Royal Hospital, Greenwich, by Queen Anne.",
'nationality' => ['scotland'],
'ships' => ['blessed_william', 'adventure_galley'],
],
'anne_bonny' => [
'nid' => NULL,
'status' => 1,
'title' => 'Anne Bonny',
'nickname' => ["The Pirate Queen", "Sea's Fury"],
'body' => "",
'nationality' => ['ireland'],
'ships' => ['revenge'],
],
'zheng yi sao' => [
'nid' => NULL,
'status' => 1,
'title' => 'Zheng Yi Sao',
'nickname' => ["The Terror of South China", "Dragon Lady of the Seas"],
'body' => "",
'nationality' => ['china'],
'ships' => ['red_flag_fleet'],
],
'henry_every' => [
'nid' => NULL,
'status' => 1,
'title' => 'Henry Every',
'nickname' => ["Long Ben", "King of Pirates"],
'body' => "",
'nationality' => ['england'],
'ships' => ['fancy'],
],
'charlotte_de_berry' => [
'nid' => NULL,
'status' => 1,
'title' => 'Charlotte de Berry',
'nickname' => ["The Fierce Mistress"],
'body' => "",
'nationality' => ['united_kingdom'],
'ships' => ['queen_anne'],
],
'mary_read' => [
'nid' => NULL,
'status' => 1,
'title' => 'Mary Read',
'nickname' => ["Mark Read"],
'body' => "",
'nationality' => ['united_kingdom'],
'ships' => ['revenge'],
],
'calico_jack' => [
'nid' => NULL,
'status' => 1,
'title' => 'Calico Jack',
'nickname' => [],
'body' => "",
'nationality' => ['jamaica'],
'ships' => ['ranger'],
],
'francois_lolonnais' => [
'nid' => NULL,
'status' => 1,
'title' => 'Francois l\'Olonnais',
'nickname' => ["The Bane of Spain"],
'body' => "",
'nationality' => ['france'],
'ships' => ['la_trompeuse'],
],
'grace_omalley' => [
'nid' => NULL,
'status' => 1,
'title' => 'Grace O\'Malley',
'nickname' => ["Granuaile"],
'body' => "",
'nationality' => ['ireland'],
'ships' => ['pirate_queen'],
],
'' => [

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.1.x, 8.1, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.1.x, 8.2, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.1.x, 8.1, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.0.x, 8.2, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.4.x, 8.1, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.0.x, 8.1, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.5.x, 8.1, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.4.x, 8.0, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.1.x, 8.2, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.0.x, 8.2, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (10.0.x, 8.1, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.5.x, 8.1, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.5.x, 8.0, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.5.x, 8.0, 10.6)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.4.x, 8.0, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').

Check failure on line 238 in modules/bc_api_example/bc_api_example.data.inc

View workflow job for this annotation

GitHub Actions / test (9.4.x, 8.1, 10.4)

Array has 5 duplicate keys with value '' ('', '', '', '', '').
'nid' => NULL,
'status' => 1,
'title' => '',
'nickname' => ["", ""],
'body' => "",
'nationality' => [''],
'ships' => [''],
],
'' => [
'nid' => NULL,
'status' => 1,
'title' => '',
'nickname' => ["", ""],
'body' => "",
'nationality' => [''],
'ships' => [''],
],
'' => [
'nid' => NULL,
'status' => 1,
'title' => '',
'nickname' => ["", ""],
'body' => "",
'nationality' => [''],
'ships' => [''],
],
'' => [
'nid' => NULL,
'status' => 1,
'title' => '',
'nickname' => ["", ""],
'body' => "",
'nationality' => [''],
'ships' => [''],
],
'' => [
'nid' => NULL,
'status' => 1,
'title' => '',
'nickname' => ["", ""],
'body' => "",
'nationality' => [''],
'ships' => [''],
],
];
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
Expand Down

0 comments on commit 4e3f484

Please sign in to comment.