QuantityTypeBase.php in farmOS 2.x
File
modules/core/entity/src/Plugin/Quantity/QuantityType/QuantityTypeBase.phpView 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
Name | Description |
---|---|
QuantityTypeBase | Provides the base quantity type class. |