Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

PLAT-353 Moving cards options to PHP and out of YML #378

Merged
merged 1 commit into from
Jul 15, 2016

Conversation

pvhee
Copy link
Contributor

@pvhee pvhee commented Jul 15, 2016

Fixes https://jira.comicrelief.com/browse/PLAT-353

Warning: this change is critical if not deployments will fail and options won't be able to be changed once the field has field values in the database!

@pvhee
Copy link
Contributor Author

pvhee commented Jul 15, 2016

@gusliedke we forgot to handle this as part of #360 - fixing this here and let's keep an eye out for this.

@@ -15,7 +15,9 @@ use Drupal\Core\Field\FieldStorageDefinitionInterface;
*/
function cr_cards_field_cr_cards_background(FieldStorageDefinitionInterface $definition, FieldableEntityInterface $entity = NULL) {
$values = [
'cards-black' => t('Black'),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somehow I think we started the work but never finished @gusliedke ?

@gusliedke gusliedke merged commit 4534351 into develop Jul 15, 2016
@gusliedke gusliedke deleted the feature/PLAT-353_cards_options branch July 15, 2016 13:33
@pvhee pvhee mentioned this pull request Jan 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants