ConfigEntityValidationTestBase::$hasLabel

Same name in other branches
  1. 11.x core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php \Drupal\KernelTests\Core\Config\ConfigEntityValidationTestBase::hasLabel

Whether a config entity of this type has a label.

Most config entity types ensure their entities have a label. But a few do not, typically highly abstract/very low level config entities without a strong UI presence. For example: REST resource configuration entities and entity view displays.

Type: bool

See also

\Drupal\Core\Entity\EntityInterface::label()

File

core/tests/Drupal/KernelTests/Core/Config/ConfigEntityValidationTestBase.php, line 55

Class

ConfigEntityValidationTestBase
Base class for testing validation of config entities.

Namespace

Drupal\KernelTests\Core\Config

Code

protected bool $hasLabel = TRUE;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.