Skip to content

Commit 73b1234

Browse files
committed
declare the new abstract method
1 parent ea4aa30 commit 73b1234

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

administrator/components/com_modules/src/Extension/ModulesComponent.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,20 @@ public function filterTransitions(array $transitions, int $pk): array
134134
{
135135
return ModuleHelper::filterTransitions($transitions, $pk);
136136
}
137+
138+
/**
139+
* Returns the workflow context based on the given category section
140+
*
141+
* @param string $section The section
142+
*
143+
* @return string|null
144+
*
145+
* @since __DEPLOY_VERSION__
146+
*/
147+
public function getCategoryWorkflowContext(?string $section = null): string
148+
{
149+
$context = $this->getWorkflowContexts();
150+
151+
return array_key_first($context);
152+
}
137153
}

0 commit comments

Comments
 (0)