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