protected function getSettingsFormRoute(EntityTypeInterface $entity_type) {
    if (!$entity_type->getBundleEntityType()) {
      $route = new Route("/admin/structure/{$entity_type->id()}/settings");
      $route
        ->setDefaults([
          '_form' => 'Drupal\social_font\Form\FontSettingsForm',
          '_title' => "{$entity_type->getLabel()} settings",
        ])
        ->setRequirement('_permission', $entity_type->getAdminPermission())
        ->setOption('_admin_route', TRUE);

      return $route;
    }
  }
protected function getSettingsFormRoute(EntityTypeInterface $entity_type) {
    if (!$entity_type->getBundleEntityType()) {
      $route = new Route("/admin/structure/{$entity_type->id()}/settings");
      $route
        ->setDefaults([
          '_form' => 'Drupal\social_font\Form\FontSettingsForm',
          '_title' => "{$entity_type->getLabel()} settings",
        ])
        ->setRequirement('_permission', $entity_type->getAdminPermission())
        ->setOption('_admin_route', TRUE);

      return $route;
    }
  }
protected function getSettingsFormRoute ( EntityTypeInterface $ entity_type ) { if ( ! $ entity_type -> getBundleEntityType ( ) ) { $ route = new Route ( "/admin/structure/{$entity_type->id()}/settings" ) ; $ route -> setDefaults ( [ '_form' => 'Drupal\social_font\Form\FontSettingsForm' , '_title' => "{$entity_type->getLabel()} settings" , ] ) -> setRequirement ( '_permission' , $ entity_type -> getAdminPermission ( ) ) -> setOption ( '_admin_route' , TRUE ) ; return $ route ; } }
Gets the settings form route.

@param \Drupal\Core\Entity\EntityTypeInterface $entity_type
The entity type.

@return \Symfony\Component\Routing\Route|null
The generated route, if available.
Gets the settings form route .