protected function materialDesignColorPalette($type, $name, $value) {

        $color = $this->getColors()[0];

        foreach ($this->getColors() as $current) {
            if ($name !== $current->getName()) {
                continue;
            }
            $color = $current;
        }

        $html = [];

        $html[] = "mdc";
        $html[] = $type;
        $html[] = $color->getName();
        if (null !== $value && true === array_key_exists($value, $color->getColors())) {
            $html[] = $value;
        }

        return implode("-", $html);
    }
protected function materialDesignColorPalette($type, $name, $value) {

        $color = $this->getColors()[0];

        foreach ($this->getColors() as $current) {
            if ($name !== $current->getName()) {
                continue;
            }
            $color = $current;
        }

        $html = [];

        $html[] = "mdc";
        $html[] = $type;
        $html[] = $color->getName();
        if (null !== $value && true === array_key_exists($value, $color->getColors())) {
            $html[] = $value;
        }

        return implode("-", $html);
    }
protected function materialDesignColorPalette ( $ type , $ name , $ value ) { $ color = $ this -> getColors ( ) [ 0 ] ; foreach ( $ this -> getColors ( ) as $ current ) { if ( $ name !== $ current -> getName ( ) ) { continue ; } $ color = $ current ; } $ html = [ ] ; $ html [ ] = "mdc" ; $ html [ ] = $ type ; $ html [ ] = $ color -> getName ( ) ; if ( null !== $ value && true === array_key_exists ( $ value , $ color -> getColors ( ) ) ) { $ html [ ] = $ value ; } return implode ( "-" , $ html ) ; }
Displays a Material Design Color Palette.

@param string $type The type.
@param string $name The name.
@param string $value The value.
@return string Returns the Material Design Color Palette.
Displays a Material Design Color Palette .