You are here

public function WsConfigType::getEnabledLanguagePlugin in Web Service Data 7

Gets the enabled language plugin

Return value

array|boolean Returns the language plugin and settings, FALSE otherwise.

File

modules/wsconfig/wsconfig.entity.inc, line 397
Entity classes

Class

WsConfigType
The class used for wsconfig type entities

Code

public function getEnabledLanguagePlugin() {
  $plugin = FALSE;
  if (!empty($this->data['language plugin'])) {
    $plugin = array(
      $this->data['language plugin'] => isset($this->data['language plugin settings']) ? $this->data['language plugin settings'] : array(),
    );
  }
  return $plugin;
}