createcontentwithcategory-1.0.0-alpha1/createcontentwithcategory.module

createcontentwithcategory.module
<?php

use Drupal\createcontentwithcategory\Ccwc;

/**
 * Return an array of target node-field combination objects.
 */
function createcontentwithcategory_target_nodes_fields() {
  $targets = \Drupal::config('createcontentwithcategory.settings')->get('target_nodes_fields');
  if (!$targets || !is_array($targets)) {
    return [];
  }
  $nodes_fields = [];
  foreach ($targets as $id) {
    $nodes_fields[$id] = new Ccwc($id);
  }
  return $nodes_fields;
}

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

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