You are here

LogTypeBase.php in farmOS 2.x

File

modules/core/entity/src/Plugin/Log/LogType/LogTypeBase.php
View source
<?php

namespace Drupal\farm_entity\Plugin\Log\LogType;

use Drupal\farm_entity\FarmEntityTypeBase;

/**
 * Provides the base log type class.
 */
abstract class LogTypeBase extends FarmEntityTypeBase implements LogTypeInterface {

  /**
   * {@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
LogTypeBase Provides the base log type class.