API page: https://api.drupal.org/api/drupal/core!modules!node!node.module/group/no...

The Node access rights API page says, "To see how to write a node access module of your own, see node_access_example.module." But it's not hyperlinked to anything, there is no such module in the codebase, and a few searches turned up no such thing for Drupal 8 elsewhere on the web. If anyone can tell me whether the line needs to be changed to something else or removed I'll be happy to write a patch for it.

Comments

TravisCarden created an issue. See original summary.

jhodgdon’s picture

Title: Node access rights API page refers to non-existent node_access_example.module » Node access rights API page not linking to Examples project file
Project: Drupal core » API.Drupal.org customizations
Version: 8.0.x-dev » 7.x-1.x-dev
Component: documentation » Code

That module is in the Examples for Developers project, and we've had a habit in the past of linking directly to modules and functions in that project even though they are not in Drupal Core.
See https://drupal.org/project/examples

I don't know if we have the 8.x Examples module on api.drupal.org; moving to the apidrupalorg project to check on the links. The API module is capable of making them, but the Examples project may not be set up correctly so that this happens.

drumm’s picture

https://api.drupal.org/api/examples/8 is there and is using:

    source   => 'http://git.drupal.org/project/examples.git',
    revision => '8.x-1.x',
jhodgdon’s picture

Assigned: Unassigned » jhodgdon

OK, I'll assign this to me to look into why the link is not being made. I think if the API module config is working correctly, the link *should* be made, but maybe either the API module config isn't right or the API module isn't making the link for some other reason.

jhodgdon’s picture

Status: Active » Closed (duplicate)

Oh, never mind. There isn't a Node Access example module for 8 (yet).
See #2102667: Port node_access_example module to Drupal 8. This issue is therefore a duplicate of that. I don't think we should remove the link, since when/if that module is ported, the link should hopefully work.