function ReactionRuleConfig::label

Overrides \Drupal\Core\Entity\Entity::label().

When a certain component does not have a label return the ID.

Overrides EntityBase::label

File

src/Entity/ReactionRuleConfig.php, line 205

Class

ReactionRuleConfig
Reaction rule configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

public function label() {
    if (!($label = $this->get('label'))) {
        $label = $this->id();
    }
    return $label;
}