You are here

TestFieldFalse.php in Display Suite 8.4

File

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

namespace Drupal\ds_test\Plugin\DsField;

use Drupal\ds\Plugin\DsField\DsFieldBase;

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

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

}

Classes

Namesort descending Description
TestFieldFalse Test field plugin that returns FALSE.