You are here

public function TestSearchPage::label in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 Entity::label

File

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

Class

TestSearchPage

Namespace

Drupal\Tests\search\Unit

Code

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