getCondition(); if ($condition->getState()) { $this->setStateText(sprintf( mt('setup', '%s is available.'), $this->getAlias() ?: $this->getTitle() )); return true; } $this->setStateText(sprintf( mt('setup', '%s is missing.'), $this->getAlias() ?: $this->getTitle() )); return false; } }