function RulesComponentConfig::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/RulesComponentConfig.php, line 229

Class

RulesComponentConfig
Rules component configuration entity to persistently store configuration.

Namespace

Drupal\rules\Entity

Code

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