Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On
#1906474: [policy adopted] Stop documenting methods with "Overrides …"
the Drupal Core community adopted a standard for documentation blocks on class methods that look like this:
/**
* {@inheritdoc}
*/
public function getValue() {
return $this->value;
}
The API module should basically detect a doc block containing nothing but {@inheritdoc} and treat it the same as a nonexistent doc block, which will then mean the method inherits docs from the parent method.
Comments
Comment #1
jhodgdonThis is taken care of. As discussed on the coding standards issue, the API module only supports a doc block that contains inheritdoc in the format above with nothing else added to the doc block.