src/ArchiveAdmin.php
public function getManagedModels()
    {
        $models = $this->getVersionedModels();

        // Normalize models to have their model class in array key and all names as the value are uppercased
        foreach ($models as $k => $v) {
            $archivedModels[$v] = array('title' => ucfirst(singleton($v)->i18n_plural_name()));
            unset($archivedModels[$k]);
        }

        return $archivedModels;
    }
public function getManagedModels()
    {
        $models = $this->getVersionedModels();

        // Normalize models to have their model class in array key and all names as the value are uppercased
        foreach ($models as $k => $v) {
            $archivedModels[$v] = array('title' => ucfirst(singleton($v)->i18n_plural_name()));
            unset($archivedModels[$k]);
        }

        return $archivedModels;
    }
public function getManagedModels ( ) { $ models = $ this -> getVersionedModels ( ) ; // Normalize models to have their model class in array key and all names as the value are uppercased foreach ( $ models as $ k => $ v ) { $ archivedModels [ $ v ] = array ( 'title' => ucfirst ( singleton ( $ v ) -> i18n_plural_name ( ) ) ) ; unset ( $ archivedModels [ $ k ] ) ; } return $ archivedModels ; }
Archive admin needs some extra logic for whether an archive tab should be shown

@return array Map of class name to an array of 'title' (see {@link $managed_models})
Archive admin needs some extra logic for whether an archive tab should be shown