AssetTypeBase.php in farmOS 2.x
File
modules/core/entity/src/Plugin/Asset/AssetType/AssetTypeBase.php
View source
<?php
namespace Drupal\farm_entity\Plugin\Asset\AssetType;
use Drupal\farm_entity\FarmEntityTypeBase;
abstract class AssetTypeBase extends FarmEntityTypeBase implements AssetTypeInterface {
public function getLabel() {
return $this->pluginDefinition['label'];
}
public function getWorkflowId() {
return $this->pluginDefinition['workflow'];
}
public function buildFieldDefinitions() {
return [];
}
}