Create repository:
git init
| function mytheme_preprocess_user(&$variables) { | |
| if($variables['elements']['#view_mode'] == 'full') { | |
| /** @var $target_user \Drupal\user\Entity\User */ | |
| $target_user = $variables['user']; | |
| $supported_projects_by_user_view = \Drupal\views\Views::getView('supported_projects_by_enlightaid_user'); | |
| $supported_projects_by_user_view->get_total_rows = TRUE; | |
| $supported_projects_by_user_view->execute('supported_projects_by_user_block'); |
| <?php | |
| namespace Drupal\yourmodule\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Symfony\Component\HttpFoundation\RedirectResponse; | |
| /** | |
| * A controller that redirects to the current user's edit account page. |
| drush eval "var_dump(Drupal\Component\Utility\Crypt::randomBytesBase64(55))" |
| <?php | |
| function MODULE_form_node_form_after_build($form) { | |
| $menu_form = &$form['menu']; | |
| $menu_form = MODULE_node_form_reformat_menus($menu_form); | |
| } | |
| /** | |
| * Reformats parent menu selects. | |
| */ |
| git checkout --orphan temp_master | |
| git rm -rf . | |
| git commit --allow-empty -m 'Make initial root commit' | |
| git rebase --onto temp_master --root master | |
| git branch -D temp_master |