TestDimensionUnit.php

Namespace

Drupal\design_tokens_test\Enum

File

core/modules/system/tests/modules/design_tokens_test/src/Enum/TestDimensionUnit.php

View source
<?php

declare (strict_types=1);
namespace Drupal\design_tokens_test\Enum;

use Drupal\Core\Theme\DesignToken\Enum\DimensionUnitInterface;

/**
 * Allows to test with another implementation of DimensionUnitInterface.
 */
enum TestDimensionUnit : string implements DimensionUnitInterface
{
  case Rem = 'rem';
  case Px = 'px';
  case Em = 'em';
}

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