MetaModels\Attribute\Base::getBaseDefinition PHP Method

getBaseDefinition() private method

Retrieve the base definition by the user from dca_config.
private getBaseDefinition ( ) : array
return array
    private function getBaseDefinition()
    {
        $this->setLanguageStrings();
        $tableName = $this->getMetaModel()->getTableName();
        $definition = array();
        if (isset($GLOBALS['TL_DCA'][$tableName]['fields'][$this->getColName()])) {
            $definition = $GLOBALS['TL_DCA'][$tableName]['fields'][$this->getColName()];
        }
        return array_replace_recursive(array('label' => &$GLOBALS['TL_LANG'][$tableName][$this->getColName()], 'eval' => array()), $definition);
    }