You are here

TestFieldNull.php in Display Suite 8.4

File

tests/modules/ds_test/src/Plugin/DsField/TestFieldNull.php
View source
<?php

namespace Drupal\ds_test\Plugin\DsField;

use Drupal\ds\Plugin\DsField\DsFieldBase;

/**
 * Test field plugin that returns NULL.
 *
 * @DsField(
 *   id = "test_field_null",
 *   title = @Translation("Test field plugin that returns NULL"),
 *   entity_type = "node"
 * )
 */
class TestFieldNull extends DsFieldBase {

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

}

Classes

Namesort descending Description
TestFieldNull Test field plugin that returns NULL.