src/Extension/FluentExtension.php
public function getLocalisedTables()
    {
        $includedTables = [];
        $baseClass = $this->owner->baseClass();
        $tableClasses = ClassInfo::ancestry($this->owner, true);
        foreach ($tableClasses as $class) {
            // Check translated fields for this class (except base table, which is always scaffolded)
            $translatedFields = $this->getLocalisedFields($class);
            if (empty($translatedFields) && $class !== $baseClass) {
                continue;
            }

            // Mark this table as translatable
            $table = DataObject::getSchema()->tableName($class);
            $includedTables[$table] = array_keys($translatedFields);
        }
        return $includedTables;
    }
public function getLocalisedTables()
    {
        $includedTables = [];
        $baseClass = $this->owner->baseClass();
        $tableClasses = ClassInfo::ancestry($this->owner, true);
        foreach ($tableClasses as $class) {
            // Check translated fields for this class (except base table, which is always scaffolded)
            $translatedFields = $this->getLocalisedFields($class);
            if (empty($translatedFields) && $class !== $baseClass) {
                continue;
            }

            // Mark this table as translatable
            $table = DataObject::getSchema()->tableName($class);
            $includedTables[$table] = array_keys($translatedFields);
        }
        return $includedTables;
    }
public function getLocalisedTables ( ) { $ includedTables = [ ] ; $ baseClass = $ this -> owner -> baseClass ( ) ; $ tableClasses = ClassInfo :: ancestry ( $ this -> owner , true ) ; foreach ( $ tableClasses as $ class ) { // Check translated fields for this class (except base table, which is always scaffolded) $ translatedFields = $ this -> getLocalisedFields ( $ class ) ; if ( empty ( $ translatedFields ) && $ class !== $ baseClass ) { continue ; } // Mark this table as translatable $ table = DataObject :: getSchema ( ) -> tableName ( $ class ) ; $ includedTables [ $ table ] = array_keys ( $ translatedFields ) ; } return $ includedTables ; }
Get all database tables in the class ancestry and their respective
translatable fields

@return array
Get all database tables in the class ancestry and their respective translatable fields