childfocus_notfound-1.0.0/childfocus_notfound.install

childfocus_notfound.install
<?php

use Drupal\block\Entity\Block;

function childfocus_notfound_install() {

  Block::create([
    'id' => 'childfocus_notfound',
    'plugin' => 'childfocus_notfound',
    'region' => 'content',
    'settings' => [
      'label_label' => '0',
    ],
    'theme' => \Drupal::config('system.theme')->get('default'),
    'visibility' => [
      'childfocus_notfound' => [
        'id' => 'childfocus_notfound',
        'show_on_page_not_found' => TRUE,
        'negate' => false
      ]
    ],
    'weight' => 100,
  ])->save();

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc