[TOOLS][DOC] Add documentation to functions flagged by doc-check

This commit is contained in:
2022-01-02 22:02:25 +00:00
committed by Diogo Peralta Cordeiro
parent 9e0a2dd4a0
commit a9ea49d34c
6 changed files with 40 additions and 1 deletions

View File

@@ -54,8 +54,12 @@ abstract class MetaCollectionPlugin extends Plugin
abstract protected function removeItems(Actor $owner, array $vars, $items, array $collections);
abstract protected function addItems(Actor $owner, array $vars, $items, array $collections);
/**
* Check the route to determine whether the widget should be added
*/
abstract protected function shouldAddToRightPanel(Actor $user, $vars, Request $request): bool;
abstract protected function getCollectionsBy(Actor $owner, ?array $vars = null, bool $ids_only = false): array;
/**
* Append Collections widget to the right panel.
* It's compose of two forms: one to select collections to add
@@ -152,6 +156,7 @@ abstract class MetaCollectionPlugin extends Plugin
);
return Event::next;
}
public function onEndShowStyles(array &$styles, string $route): bool
{
$styles[] = 'components/Collection/assets/css/widget.css';