You are here

class TMGMTPluginBase in Translation Management Tool 7

Base class for Translation Management plugins.

Hierarchy

Expanded class hierarchy of TMGMTPluginBase

File

plugin/tmgmt.plugin.base.inc, line 11
Contains the base plugin class.

View source
class TMGMTPluginBase implements TMGMTPluginBaseInterface {
  protected $pluginType;
  protected $pluginInfo;

  /**
   * {@inheritdoc}
   */
  public function __construct($type, $plugin) {
    $this->pluginType = $plugin;
    $this->pluginInfo = _tmgmt_plugin_info($type, $plugin);
  }

  /**
   * {@inheritdoc}
   */
  public function pluginInfo() {
    return $this->pluginInfo;
  }

  /**
   * {@inheritdoc}
   */
  public function pluginType() {
    return $this->pluginType;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TMGMTPluginBase::$pluginInfo protected property
TMGMTPluginBase::$pluginType protected property
TMGMTPluginBase::pluginInfo public function Returns the info of the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginInfo
TMGMTPluginBase::pluginType public function Returns the type of the plugin. Overrides TMGMTPluginBaseInterface::pluginType
TMGMTPluginBase::__construct public function Constructor. Overrides TMGMTPluginBaseInterface::__construct