You are here

public function ExtensionsUnrecommended::getExtensions in Site Audit 8.3

Get a list of unrecommended extension names and reasons.

Return value

array Keyed by module machine name, value is explanation.

1 call to ExtensionsUnrecommended::getExtensions()
ExtensionsUnrecommended::calculateScore in src/Plugin/SiteAuditCheck/ExtensionsUnrecommended.php
.

File

src/Plugin/SiteAuditCheck/ExtensionsUnrecommended.php, line 125

Class

ExtensionsUnrecommended
Provides the ExtensionsUnrecommended Check.

Namespace

Drupal\site_audit\Plugin\SiteAuditCheck

Code

public function getExtensions() {
  $unrecommended_modules = [
    'bad_judgement' => $this
      ->t('Joke module, framework for anarchy.'),
    'php' => $this
      ->t('Executable code should never be stored in the database.'),
  ];

  // If ($this->options['vendor'] == 'pantheon') { TODO.
  if (FALSE) {

    // Unsupported or redundant.
    $pantheon_unrecommended_modules = [
      'memcache' => $this
        ->t('Pantheon does not provide memcache; instead, redis is provided as a service to all customers; see http://helpdesk.getpantheon.com/customer/portal/articles/401317'),
      'memcache_storage' => $this
        ->t('Pantheon does not provide memcache; instead, redis is provided as a service to all customers; see http://helpdesk.getpantheon.com/customer/portal/articles/401317'),
    ];
    $unrecommended_modules = array_merge($unrecommended_modules, $pantheon_unrecommended_modules);
  }
  return $unrecommended_modules;
}