- Issue created by @lpeidro
- ๐ช๐ธSpain lpeidro Madrid
I upload the patch to be applied in projects.
- last update
over 1 year ago 9 pass - last update
over 1 year ago Composer require failure - @lpeidro opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year 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
about 1 year ago 10:39am 13 November 2023 - last update
about 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