By admin, 24 February, 2023 drush remove taxonomy terms drush entity:delete taxonomy_term --bundle=application Tags drush
By admin, 24 February, 2023 Add translate context to string $this->t('April', [], ['context' => 'Long month name']), Tags translate
By admin, 24 February, 2023 Redirect from form to external URL $response = new TrustedRedirectResponse('https://google.com'); $form_state->setResponse($response); Tags redirect
By admin, 24 February, 2023 Hide local task /** * Implements hook_local_tasks_alter(). */ function EXAMPLE_local_tasks_alter(&$local_tasks) { unset($local_tasks['user.register']); } Tags tabs
By admin, 24 February, 2023 Get current route $route_name = \Drupal::routeMatch()->getRouteName(); Tags routes
By admin, 24 February, 2023 Error "mysqldump: Couldn't execute 'FLUSH TABLES': Access denied; you need (at least one of) the RELOAD or FLUSH_TABLES privilege(s) for this operation (1227)" Нужно выполнитьGRANT RELOAD ON *.* TO 'your_user'@'localhost'; FLUSH PRIVILEGES; Tags mysql
By admin, 24 February, 2023 Get current URL $current_path = \Drupal::service('path.current')->getPath(); Tags url