You are here

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;

/**
 * Provides the base asset type class.
 */
abstract class AssetTypeBase extends FarmEntityTypeBase implements AssetTypeInterface {

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

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

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

}

Classes

Namesort descending Description
AssetTypeBase Provides the base asset type class.