TCA::setPagesConfig() 

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

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

This example overwrites the config array of the pages table for the TCA:

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

| @return array

Source Code 

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