group-8.x-1.x-dev/tests/modules/group_test_plugin/src/Plugin/Group/Relation/NodeAsContent.php

tests/modules/group_test_plugin/src/Plugin/Group/Relation/NodeAsContent.php
<?php

namespace Drupal\group_test_plugin\Plugin\Group\Relation;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\group\Plugin\Attribute\GroupRelationType;
use Drupal\group\Plugin\Group\Relation\GroupRelationBase;

/**
 * Provides a group relation type for nodes.
 */
#[GroupRelationType(
  id: 'node_as_content',
  entity_type_id: 'node',
  label: new TranslatableMarkup('Node as content'),
  description: new TranslatableMarkup('Adds nodes to groups.'),
  entity_access: TRUE,
  deriver: 'Drupal\group_test_plugin\Plugin\Group\Relation\NodeAsContentDeriver'
)]
class NodeAsContent extends GroupRelationBase {
}

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

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