Problem/Motivation

The module provides multiple hooks, however none are documented in the content_lock.api.php file.

On a side note, I'm aware that there's a content_lock_entity_lockable hook, however it doesn't provide a way for third party modules with custom operations to alter the behaviour of the lock (e.g. in order to opt out).

Is this an intentional design decision?

Steps to reproduce

N/A

Proposed resolution

Create the content_lock_entity_lockable.api.php file with documentation for the appropriate hooks.

Remaining tasks

Provide a patch and commit.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codebymikey created an issue. See original summary.

smustgrave’s picture

Seems to still be relevant.

smustgrave’s picture

Priority: Normal » Major
Related issues: +#3025834: How do I dynamicall prevent content from being locked ?
smustgrave’s picture

Title: Drupal 8+ version is missing content_lock_entity_lockable.api.php » Missing content_lock.api.php
Issue summary: View changes

smustgrave’s picture

Status: Active » Needs review

Full disclosure I'm not good at writing .api's but I gave it a shot. Hopefully a maintainer can fill in the gaps.

smustgrave’s picture

This needs work but want to get feedback about what the api's are suppose to do

alexpott made their first commit to this issue’s fork.

alexpott’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.