Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CurrentThemeCondition.php

function CurrentThemeCondition::summary

Overrides ConditionInterface::summary

File

core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php, line 114

Class

CurrentThemeCondition
Provides a 'Current Theme' condition.

Namespace

Drupal\system\Plugin\Condition

Code

public function summary() {
    if ($this->isNegated()) {
        return $this->t('The current theme is not @theme', [
            '@theme' => $this->configuration['theme'],
        ]);
    }
    return $this->t('The current theme is @theme', [
        '@theme' => $this->configuration['theme'],
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal