5 use Drupal\Core\Field\FieldDefinitionInterface;
6 use Drupal\Core\Field\Plugin\Field\FieldType\BooleanItem;
9 * Defines the 'status' entity field type.
11 * @todo Consider making this a full field type plugin in
12 * https://www.drupal.org/project/drupal/issues/2936864.
14 class StatusItem extends BooleanItem {
19 public static function generateSampleValue(FieldDefinitionInterface $field_definition) {
20 // Always generate a sample with an enabled status.