public function getCampaignPalette(NodeInterface $node) {
    $palette = [];
    $campaign = $this->getNodeCampaignNode($node);
    $scheme_id = $campaign->get('field_campaign_palette')->getString();
    $color_info = color_get_info(OPENY_THEME);
    if (!empty($color_info['schemes'][$scheme_id])) {
      $palette = $color_info['schemes'][$scheme_id];
    }
    return $palette;
  }
public function getCampaignPalette(NodeInterface $node) {
    $palette = [];
    $campaign = $this->getNodeCampaignNode($node);
    $scheme_id = $campaign->get('field_campaign_palette')->getString();
    $color_info = color_get_info(OPENY_THEME);
    if (!empty($color_info['schemes'][$scheme_id])) {
      $palette = $color_info['schemes'][$scheme_id];
    }
    return $palette;
  }
public function getCampaignPalette ( NodeInterface $ node ) { $ palette = [ ] ; $ campaign = $ this -> getNodeCampaignNode ( $ node ) ; $ scheme_id = $ campaign -> get ( 'field_campaign_palette' ) -> getString ( ) ; $ color_info = color_get_info ( OPENY_THEME ) ; if ( ! empty ( $ color_info [ 'schemes' ] [ $ scheme_id ] ) ) { $ palette = $ color_info [ 'schemes' ] [ $ scheme_id ] ; } return $ palette ; }
Gets the color scheme for a campaign node.

@param \Drupal\node\NodeInterface $node

@return array
Gets the color scheme for a campaign node .