Commit b4de3cda authored by NickWilde's avatar NickWilde

Issue #2986166 by NickWilde: further standards fixes.

parent eaa18165
......@@ -19,7 +19,7 @@ function color_field_help($route_name, RouteMatchInterface $route_match) {
$output .= '<p>' . t('Color Field is simple field that use a hexadecimal notation (HEX) for the combination of Red, Green, and Blue color values (RGB). See the <a href="!field">Field module help</a> and the <a href="!field_ui">Field UI help</a> pages for general information on fields and how to create and manage them. For more information, see the <a href="!link_documentation">online documentation for the Link module</a>.', [
'!field' => Url::fromRoute('help.page', ['name' => 'field']),
'!field_ui' => Url::fromRoute('help.page', ['name' => 'field_ui']),
'!link_documentation' => 'https://drupal.org/documentation/modules/link'
'!link_documentation' => 'https://drupal.org/documentation/modules/link',
]) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
......
......@@ -8,4 +8,5 @@
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
transform: skew(20deg);
}
......@@ -87,6 +87,7 @@ class ColorCMY extends ColorBase {
* The color in format: #RRGGBB.
*/
public function toString($opacity = TRUE) {
return $this->toHex()->toString($opacity);
}
/**
......
......@@ -107,6 +107,7 @@ class ColorCMYK extends ColorBase {
* The color in format: #RRGGBB.
*/
public function toString($opacity = TRUE) {
return $this->toHex()->toString($opacity);
}
/**
......
......@@ -24,7 +24,7 @@ interface ColorInterface {
public function toHex();
/**
* Get the color as a RGB instance
* Get the color as a RGB instance.
*
* @return \Drupal\color_field\ColorRGB
* The color as a RGB instance.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment