addBehaviors([ 'adminBlogPreferencesFormV2' => BackendBehaviors::adminBlogPreferencesFormV2(...), 'adminBeforeBlogSettingsUpdate' => BackendBehaviors::adminBeforeBlogSettingsUpdate(...), 'adminFiltersListsV2' => BackendBehaviors::adminFiltersListsV2(...), 'adminColumnsListsV2' => BackendBehaviors::adminColumnsListsV2(...), 'adminPostListHeaderV2' => BackendBehaviors::adminPostListHeaderV2(...), 'adminPostListValueV2' => BackendBehaviors::adminPostListValueV2(...), 'adminBeforePostDelete' => BackendBehaviors::adminBeforePostDelete(...), ]); if (My::settings()->get('periodical_active')) { // add backend sidebar icon My::addBackendMenuItem(); // register bakend behaviors required user permissions App::behavior()->addBehaviors([ 'adminDashboardFavoritesV2' => BackendBehaviors::adminDashboardFavoritesV2(...), 'adminPostHeaders' => BackendBehaviors::adminPostHeaders(...), 'adminPostsActions' => BackendBehaviors::adminPostsActions(...), 'adminPostFormItems' => BackendBehaviors::adminPostFormItems(...), 'adminAfterPostUpdate' => BackendBehaviors::adminAfterPostSave(...), 'adminAfterPostCreate' => BackendBehaviors::adminAfterPostSave(...), ]); } return true; } }