.. _TCA-setPagesConfig: ============================================== 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``: .. code-block:: php $GLOBALS['TCA']['pages']['columns']['title']['config'][...] .. code-block:: php \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] | ``@return array`` Source Code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: php 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) ); }