You are here

public function SourcePluginBase::getItemTypes in Translation Management Tool 8

Returns an array of translatable source item types.

Overrides SourcePluginInterface::getItemTypes

1 call to SourcePluginBase::getItemTypes()
SourcePluginBase::getItemTypeLabel in src/SourcePluginBase.php
Returns the label of a source item type.
3 methods override SourcePluginBase::getItemTypes()
ConfigSource::getItemTypes in sources/tmgmt_config/src/Plugin/tmgmt/Source/ConfigSource.php
Returns an array of translatable source item types.
ContentEntitySource::getItemTypes in sources/content/src/Plugin/tmgmt/Source/ContentEntitySource.php
Returns an array of translatable source item types.
LocaleSource::getItemTypes in sources/locale/src/Plugin/tmgmt/Source/LocaleSource.php
Returns an array of translatable source item types.

File

src/SourcePluginBase.php, line 31

Class

SourcePluginBase
Default controller class for source plugins.

Namespace

Drupal\tmgmt

Code

public function getItemTypes() {
  return isset($this->pluginDefinition['item types']) ? $this->pluginDefinition['item types'] : array();
}