public function TestSearchPage::label in Drupal 9
Same name and namespace in other branches
- 8 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
Namespace
Drupal\Tests\search\UnitCode
public function label($langcode = NULL) {
return $this->label;
}