diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php index f1193e2..55265d6 100644 --- a/core/modules/node/node.api.php +++ b/core/modules/node/node.api.php @@ -364,8 +364,6 @@ function hook_node_access(\Drupal\node\NodeInterface $node, $op, \Drupal\Core\Se * * @param \Drupal\node\NodeInterface $node * The node being displayed in a search result. - * @param string $langcode - * Language code of result being displayed. * * @return array * Extra information to be displayed with search result. This information @@ -378,7 +376,7 @@ function hook_node_access(\Drupal\node\NodeInterface $node, $op, \Drupal\Core\Se * * @ingroup entity_crud */ -function hook_node_search_result(\Drupal\node\NodeInterface $node, $langcode) { +function hook_node_search_result(\Drupal\node\NodeInterface $node) { $rating = db_query('SELECT SUM(points) FROM {my_rating} WHERE nid = :nid', array('nid' => $node->id()))->fetchField(); return array('rating' => \Drupal::translation()->formatPlural($rating, '1 point', '@count points')); } diff --git a/core/modules/text/src/TextProcessed.php b/core/modules/text/src/TextProcessed.php index d41cb92..197b28c 100644 --- a/core/modules/text/src/TextProcessed.php +++ b/core/modules/text/src/TextProcessed.php @@ -41,7 +41,7 @@ public function __construct(DataDefinitionInterface $definition, $name = NULL, T /** * Implements \Drupal\Core\TypedData\TypedDataInterface::getValue(). */ - public function getValue($langcode = NULL) { + public function getValue() { if ($this->processed !== NULL) { return $this->processed; }