StrongarmConfiguration.php in Configuration Management 7.2
Definition of Drupal\configuration\Config\StrongarmConfiguration.
Namespace
Drupal\configuration\ConfigFile
lib/Drupal/configuration/Config/StrongarmConfiguration.phpView source
<?php
/**
* @file
* Definition of Drupal\configuration\Config\StrongarmConfiguration.
*/
namespace Drupal\configuration\Config;
use Drupal\configuration\Config\CtoolsConfiguration;
class StrongarmConfiguration extends CtoolsConfiguration {
/**
* Overrides Drupal\configuration\Config\Configuration::isActive().
*/
public static function isActive() {
return module_exists('strongarm');
}
/**
* Overrides Drupal\configuration\Config\Configuration::getComponentHumanName().
*/
public static function getComponentHumanName($component, $plural = FALSE) {
return $plural ? t('Variables (strongarm)') : t('Variable (strongarm)');
}
/**
* Overrides Drupal\configuration\Config\Configuration::getComponent().
*/
public function getComponent() {
return 'variable';
}
/**
* Overrides Drupal\configuration\Config\Configuration::supportedComponents().
*/
public static function supportedComponents() {
return array(
'variable',
);
}
/**
* Overrides Drupal\configuration\Config\Configuration::findRequiredModules().
*/
public function findRequiredModules() {
$this
->addToModules('strongarm');
parent::findRequiredModules();
}
}
Classes
Name | Description |
---|---|
StrongarmConfiguration |