- Issue created by @lpeidro
- ๐ช๐ธSpain lpeidro Madrid
I upload the patch to be applied in projects.
- last update
almost 2 years ago 9 pass - last update
almost 2 years ago Composer require failure - @lpeidro opened merge request.
- Issue was unassigned.
- Status changed to Needs review
almost 2 years ago 3:44pm 7 June 2023 - Status changed to Needs work
over 1 year ago 1:23am 29 August 2023 - ๐ฆ๐บAustralia markgp
TypeError: Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterText::getColorFormat(): Return value must be of type array, Drupal\Core\StringTranslation\TranslatableMarkup returned in Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterText->getColorFormat() (line 112 of /var/www/html/web/modules/contrib/color_field/src/Plugin/Field/FieldFormatter/ColorFieldFormatterText.php)
Still has issues when trying to add the field in the "Manage Display" dialogue.
- Status changed to Needs review
over 1 year ago 10:39am 13 November 2023 - last update
over 1 year ago 9 pass - ๐ฉ๐ชGermany Synflag
Hi, regarding Drupal\color_field\Plugin\Field\FieldFormatter\ColorFieldFormatterText::getColorFormat():
This is 7.4 compatible:/** * This function is used to get the color format. * * @param string|null $format * Format is of string type. * * @return array|\Drupal\Component\Render\MarkupInterface * Returns array or string. */ protected function getColorFormat(?string $format = NULL) { $formats = []; $formats['hex'] = $this->t('Hex triplet'); $formats['rgb'] = $this->t('RGB Decimal'); if ($format !== null) { return [$format => $formats[$format]]; } return $formats; }
Greetings
Lars Jendrzejewski, synflag Web Engineering - Status changed to Closed: outdated
6 days ago 7:34pm 30 March 2025 - ๐จ๐ฆCanada nickdickinsonwilde Victoria, BC (T'So-uke lands)
PHP 7.4 was end of life in 2022 and Drupal 10 didn't support it. closing this as outdated. Should've limited so that people running outdated versions couldn't make mistakes but at this that window has closed (especially because cannot edit past releases to add that limitation)