/** * Generate a list of all tokens in the final header. * This doesn't need to be overridden in theory, but it is for implementation * reasons to prevent potential breakage of attributes. * @return string[] * @access protected */ protected function toTokens($string = null) { $tokens = parent::toTokens(parent::getFieldBody()); //Try creating any parameters foreach ($this->_params as $name => $value) { if (!is_null($value)) { //Add the semi-colon separator $tokens[count($tokens) - 1] .= ';'; $tokens = array_merge($tokens, $this->generateTokenLines(' ' . $this->_createParameter($name, $value))); } } return $tokens; }