ds-8.x-3.9/tests/modules/ds_test/src/Plugin/DsField/TestFieldNothing.php

tests/modules/ds_test/src/Plugin/DsField/TestFieldNothing.php
<?php

namespace Drupal\ds_test\Plugin\DsField;

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\ds\Attribute\DsField;
use Drupal\ds\Plugin\DsField\DsFieldBase;

/**
 * Test field plugin that returns nothing.
 */
#[DsField(
  id: 'test_field_nothing',
  title: new TranslatableMarkup('Test field plugin that returns nothing'),
  entity_type: 'node'
)]
class TestFieldNothing extends DsFieldBase {

  /**
   * {@inheritdoc}
   */
  public function build() {
    return [];
  }

}

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

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