devel_wizard-2.x-dev/templates/spell/entity_type_group/module.php.twig

templates/spell/entity_type_group/module.php.twig
<?php

/**
 * @file
 * Enables Group functionality for the {{ contentEntityType.id }} entity type.
 */

declare(strict_types=1);

use {{ configEntityType.interfaceFqn }};

/**
 * Implements hook_ENTITY_TYPE_insert().
 */
function {{ module.machineName }}_{{ configEntityType.id }}_insert({{ configEntityType.interface }} ${{ configEntityType.id }}) {
  \Drupal::getContainer()
    ->get('group_relation_type.manager')
    ->clearCachedDefinitions();
}

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

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