TCA::setContentConfig() 

\nn\t3::TCA()->setContentConfig($field = '', $override = [], $shortParams = NULL); 

Set or overwrite a configuration of the TCA for the table tt_content.

This example overwrites the config array of the tt_content table in the TCA for:

$GLOBALS['TCA']['tt_content']['columns']['title']['config'][...]
Copied!
\nn\t3::TCA()->setContentConfig( 'header', 'text' ); // ['type'=>'text', 'rows'=>2]
\nn\t3::TCA()->setContentConfig( 'header', 'text', 10 ); // ['type'=>'text', 'rows'=>10]
\nn\t3::TCA()->setContentConfig( 'header', ['type'=>'text', 'rows'=>10] ); // ['type'=>'text', 'rows'=>10]
Copied!

| @return array

Source Code 

public function setContentConfig( $field = '', $override = [], $shortParams = null )
{
	if (!isset($GLOBALS['TCA']['tt_content']['columns'][$field]['config'])) {
		$GLOBALS['TCA']['tt_content']['columns'][$field]['config'] = [];
	}
	$config = &$GLOBALS['TCA']['tt_content']['columns'][$field]['config'];
	return $config = \nn\t3::Arrays()->merge( $config, $this->getConfigForType($override, $shortParams) );
}
Copied!