|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| __construct ($hex) | |
| asHtml ($linkResolver=null) | |
| asText () | |
| getHexValue () | |
This class embodies a Color fragment.
| Prismic\Fragment\Color::__construct | ( | $hex | ) |
Constructs a Color fragment.
| string | $hex | the hexadecimal code of the color |
| Prismic\Fragment\Color::asHtml | ( | $linkResolver = null | ) |
Builds a HTML version of the color.
| \Prismic\LinkResolver | $linkResolver | the link resolver |
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Color::asText | ( | ) |
Builds a text version of the color.
Implements Prismic\Fragment\FragmentInterface.
| Prismic\Fragment\Color::getHexValue | ( | ) |
Returns the hexadecimal code of the color.
1.8.12