TestDataType.php

Same filename in other branches
  1. 9 core/tests/Drupal/Tests/Core/Plugin/Fixtures/Plugin/DataType/TestDataType.php
  2. 10 core/tests/Drupal/Tests/Core/Plugin/Fixtures/Plugin/DataType/TestDataType.php
  3. 11.x core/tests/Drupal/Tests/Core/Plugin/Fixtures/Plugin/DataType/TestDataType.php

Namespace

Drupal\Tests\Core\Plugin\Fixtures\Plugin\DataType

File

core/tests/Drupal/Tests/Core/Plugin/Fixtures/Plugin/DataType/TestDataType.php

View source
<?php

namespace Drupal\Tests\Core\Plugin\Fixtures\Plugin\DataType;

use Drupal\Core\TypedData\TypedData;

/**
 * Provides a test data type.
 *
 * @DataType(
 *   id = "test_data_type",
 *   label = @Translation("Test data type"),
 *   deriver = "Drupal\Tests\Core\Plugin\Fixtures\Plugin\DataType\TestDataTypeDeriver"
 * )
 */
class TestDataType extends TypedData {
    
    /**
     * Required by the parent class.
     *
     * @var mixed
     */
    protected $value;

}

Classes

Title Deprecated Summary
TestDataType Provides a test data type.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.