public function ThemeKeyRule::toString in ThemeKey 8
Returns a simple string representation of the rule. TODO
Return value
string
Overrides ThemeKeyRuleInterface::toString
File
- src/
Entity/ ThemeKeyRule.php, line 155 - Contains Drupal\themekey\Entity\ThemeKeyRule.
Class
- ThemeKeyRule
- Defines the ThemeKeyRule entity.
Namespace
Drupal\themekey\EntityCode
public function toString() {
return String::checkPlain($this
->property() . ' ' . ($this
->key() ?: '') . $this
->operator() . $this
->value() . ' >>> ' . $this
->theme());
}