/** * @param $params * @param $attributes_codes * @return string */ public function mapDirectiveVariantAttributes($params = array()) { // try to get value from parent first $value = $this->hasParentMap() ? $this->getParentMap()->mapDirectiveVariantAttributes($params) : ''; if (empty($value)) { $value = parent::mapDirectiveVariantAttributes($params); } return $value; }