DrupalCon Los Angeles 2015: Drupal 8: The Crash Course

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 2

  • @GerardoBelot
    @GerardoBelot 9 років тому +1

    Wow, unbelievable, I never thought I will see single responsablility principles on a CMS, it's so cool!!!

  • @JamesAdamar
    @JamesAdamar 8 років тому

    Just if you want to reprogram things like I do: it has to be /modules/hugs/templates/hug_page.html.twig where the twig file belongs to, not .../template/... like shown around 21:20
    The code around 26:00 will not work for mutable configs, it seems that ConfigFormBase uses immutable Config types. Solution can be found here: www.drupal.org/developing/api/8/configuration/simple
    I used $config = \Drupal::service('config.factory')->getEditable('hugs.settings'); for the first line of the submit method.
    The use statement about 36:40 Drupal\block is of course wrong and should be Drupal\Core\Block\BlockBase:
    www.drupal.org/node/2101565