Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
An example Drupal 8 module to provide a custom "dice" field as a way of specifying a dice value such as 1d6 or 2d8+3.

See http://www.ixis.co.uk/blog/drupal-8-creating-field-types-multiple-values

The 10.1.x-dev branch has been tested on Drupal version 10.1.x-dev
5 changes: 2 additions & 3 deletions dicefield.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Dice field
type: module
description: A way of specifying a dice value such as 1d6 or 2d8+3.
package: Field types
version: 1.0
core: 8.x

version: 2.x
core_version_requirement: ^9.4 || ^10
dependencies:
- field
1 change: 0 additions & 1 deletion src/AverageRoll.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
namespace Drupal\dicefield;

use Drupal\Component\Utility\SafeMarkup;
use Drupal\Component\Utility\String;
use Drupal\Core\TypedData\DataDefinitionInterface;
use Drupal\Core\TypedData\TypedDataInterface;
use Drupal\Core\TypedData\TypedData;
Expand Down