diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php index ca99fa6..13cd122 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Feed.php @@ -164,7 +164,7 @@ public function id() { /** * Implements Drupal\Core\Entity\EntityInterface::label(). */ - public function label($langcode = NULL) { + public function label() { return $this->get('title')->value; } diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php index 3007200..796ef6c 100644 --- a/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php +++ b/core/modules/aggregator/lib/Drupal/aggregator/Entity/Item.php @@ -43,7 +43,7 @@ public function id() { /** * Implements Drupal\Core\Entity\EntityInterface::label(). */ - public function label($langcode = NULL) { + public function label() { return $this->get('title')->value; } diff --git a/core/modules/block/lib/Drupal/block/Entity/Block.php b/core/modules/block/lib/Drupal/block/Entity/Block.php index 44fa169..ad538c7 100644 --- a/core/modules/block/lib/Drupal/block/Entity/Block.php +++ b/core/modules/block/lib/Drupal/block/Entity/Block.php @@ -119,7 +119,7 @@ public function getPlugin() { /** * Overrides \Drupal\Core\Entity\Entity::label(); */ - public function label($langcode = NULL) { + public function label() { $settings = $this->get('settings'); return $settings['label']; } diff --git a/core/modules/editor/lib/Drupal/editor/Entity/Editor.php b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php index a7bc66c..7c425e4 100644 --- a/core/modules/editor/lib/Drupal/editor/Entity/Editor.php +++ b/core/modules/editor/lib/Drupal/editor/Entity/Editor.php @@ -69,7 +69,7 @@ public function id() { /** * Overrides Drupal\Core\Entity\Entity::label(). */ - public function label($langcode = NULL) { + public function label() { $format = entity_load('filter_format', $this->format); return $format->name; } diff --git a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php index b4ad49b..cd3d27a 100644 --- a/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php +++ b/core/modules/system/tests/modules/entity_test/lib/Drupal/entity_test/Entity/EntityTest.php @@ -97,7 +97,7 @@ protected function init() { /** * Overrides Drupal\entity\Entity::label(). */ - public function label($langcode = NULL) { + public function label() { $info = $this->entityInfo(); if (!isset($langcode)) { $langcode = $this->activeLangcode; diff --git a/core/modules/views/lib/Drupal/views/Entity/View.php b/core/modules/views/lib/Drupal/views/Entity/View.php index 86c9720..47acded 100644 --- a/core/modules/views/lib/Drupal/views/Entity/View.php +++ b/core/modules/views/lib/Drupal/views/Entity/View.php @@ -146,7 +146,7 @@ public function createDuplicate() { * * When a certain view doesn't have a label return the ID. */ - public function label($langcode = NULL) { + public function label() { if (!$label = $this->get('label')) { $label = $this->id(); } diff --git a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php index 61505ae..b8c43d4 100644 --- a/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php +++ b/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php @@ -898,7 +898,7 @@ public function uri() { /** * Implements \Drupal\Core\Entity\EntityInterface::label(). */ - public function label($langcode = NULL) { + public function label() { return $this->storage->label($langcode); }