Issue #2607332 by r_sharma08, ashhishhh, snehi, pjonckiere, dawehner: Missing @return tag in getActiveHelp(), denormalize(), createBookNode()

8.0.x
Jennifer Hodgdon 2015-12-07 10:40:27 -08:00
parent 010b9ec04f
commit 0a97f79072
3 changed files with 9 additions and 0 deletions

View File

@ -338,6 +338,9 @@ class BookTest extends WebTestBase {
* A book node ID or set to 'new' to create a new book.
* @param int|null $parent
* (optional) Parent book reference ID. Defaults to NULL.
*
* @return \Drupal\node\NodeInterface
* The created node.
*/
function createBookNode($book_nid, $parent = NULL) {
// $number does not use drupal_static as it should not be reset

View File

@ -124,6 +124,9 @@ class ContentEntityNormalizer extends NormalizerBase {
* all default values for entity fields before applying $data to the
* entity.
*
* @return \Drupal\Core\Entity\EntityInterface
* An unserialized entity object containing the data in $data.
*
* @throws \Symfony\Component\Serializer\Exception\UnexpectedValueException
*/
public function denormalize($data, $class, $format = NULL, array $context = array()) {

View File

@ -89,6 +89,9 @@ class HelpBlock extends BlockBase implements ContainerFactoryPluginInterface {
*
* @param \Symfony\Component\HttpFoundation\Request $request
* The current request.
*
* @return string
* Help text of the matched route item as HTML.
*/
protected function getActiveHelp(Request $request) {
// Do not show on a 403 or 404 page.