You are here

public function TestSearchPage::label in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides EntityBase::label

File

core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php, line 285
Contains \Drupal\Tests\search\Unit\SearchPageRepositoryTest.

Class

TestSearchPage

Namespace

Drupal\Tests\search\Unit

Code

public function label($langcode = NULL) {
  return $this->label;
}