custom (block) module - text_format not rendered

Hello all,

I am trying to develop a custom module. It is working fine but...

I want to add a text_format field in block configuration form:

    $form['partners_text'] = array(
      '#type' => 'text_format',
      '#title' => t('Partners text'),
      '#default_value' => $config['partners_text'],
      '#format' => NULL,
      '#description' => t('Text to put in partners tab.'),
      '#required' => TRUE,

There is no validation (yet) of the form fields.

How to get site_name (D8)?

Hi,

I know this is a simple question but I am completely new to Drupal. I have checked the documentation but either I'm looking in the wrong place or it is lacking.

In a theme, how can I get the site_name? I have tried below:

{% extends "block.html.twig" %}

{% block content %}
<header>

    <h1>{{ site_name }}</h1>

</header>
{% endblock %}

This doesn't show anything. I have checked to make sure the block is set to show site_name.

(Drupal 8) Views template override confusion about available variables

I have created a Views' block template override. Have tested and debugged it and it works.
I mean it is loaded successfully. I have a confusion though about how to loop
through records.

In Views version of Drupal 7 it was easy to get everything loop. But in Drupal 8 due to its advancement in terms of template and Entity expansion, it need some bit of more knowledge.

When I do the following, the records get printed:

D7 -> D8 Migration, No files?

Trying to migrate content from my D7 to D8. For the life of me I can t get files to copy over.
I have tried using URLs and direct paths in the legacy-url param.
Both source and destination are on same server. Tried 8.0.2 and 8.0.x-dev.
Installed all the migration modules including plus and manifest.
I am trying to upgrade via Drush as I want to be selective as to the content types I bring over.

Error:
Processed 809 items (0 created, 0 updated, 809 failed, 0 ignored) - done with 'd7_file'

CGI/Fast CGI error

Hello all,

I lately installed Drupal 8.0.2 using the Acquia Dev Desktop with Php 5.5.3, Database MySQL and Apache Server(Apache/2.4.16 (Win32) OpenSSL/1.0.2d mod_fcgid/2.3.9).

I just did some basic tutorial to setup a small website and since then the moment I want to add a content or edit an article get CGI/Fast CGI not working error. The following are the details:

[Resolved] /admin/* pages "The website encountered an unexpected error"

In short, after a clean install of Drupal 8.0.2 without issues on my server (Debian 7.1 / PHP 5.6.17 / MySQL 5.5.31) I can log in and out fine and view my user profile page... that's it.

Any /admin/* pages or trying to edit my user profile returns "The website encountered an unexpected error. Please try again later."

I'm a little stuck. Can someone offer me some guidance please?

Edit:

Soooooo I have since found out that the database watchdog contained within it the following error:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x