You are here

QuantityTypeBase.php in farmOS 2.x

File

modules/core/entity/src/Plugin/Quantity/QuantityType/QuantityTypeBase.php
View source
<?php

namespace Drupal\farm_entity\Plugin\Quantity\QuantityType;

use Drupal\farm_entity\FarmEntityTypeBase;

/**
 * Provides the base quantity type class.
 */
abstract class QuantityTypeBase extends FarmEntityTypeBase implements QuantityTypeInterface {

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return $this->pluginDefinition['label'];
  }

  /**
   * {@inheritdoc}
   */
  public function buildFieldDefinitions() {
    return [];
  }

}

Classes

Namesort descending Description
QuantityTypeBase Provides the base quantity type class.