Difference between revisions of "Drupal/notes"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(missing features)
 
Line 19: Line 19:
 
==Missing Features (Drupal 8)==
 
==Missing Features (Drupal 8)==
 
* Can't easily display PDF files inline; can't easily upload non-image files to site.
 
* Can't easily display PDF files inline; can't easily upload non-image files to site.
 +
* Frequently gets into states where there are errors with no obvious resolution. Have to muck with code to figure it out.

Latest revision as of 00:13, 18 July 2016

Working on fixes/improvements to the various file/web path calculations:

  • drupal/core/lib/Drupal/Core/DrupalKernel.php
    • (994) function initializeSettings()
      • Sets up the Settings object with some path information.
    • (1030) function initializeRequestGlobals()
      • path calculations -- but doesn't use Settings object
  • drupal/core/lib/Drupal/Core/SitePathFactory.php
    • Honestly not sure what this is good for. Nobody seems to use it.
  • drupal/core/lib/Drupal/Core/Site/Settings.php
    • Wrapper for the Settings.php site configuration file.
  • drupal/core/lib/Drupal/Core/Update/UpdateKernel.php
    • kernel class for {drupal root}/update.php
    • function handleAccess()
      • authorizes user

Things to search for:

  • base_path(
  • $base_path

Missing Features (Drupal 8)

  • Can't easily display PDF files inline; can't easily upload non-image files to site.
  • Frequently gets into states where there are errors with no obvious resolution. Have to muck with code to figure it out.