Commit 79737c36 authored by catch's avatar catch
Browse files

Issue #2850057 by Munavijayalakshmi, gaurav.kapoor, ankithashetty, Pavan B S,...

Issue #2850057 by Munavijayalakshmi, gaurav.kapoor, ankithashetty, Pavan B S, ritzz, joachim, xjm, amateescu, Vishalghyv: all methods in SelectionInterface() are missing @param docs

(cherry picked from commit b16784b6)
parent 8ff460a0
......@@ -17,6 +17,15 @@ interface SelectionInterface extends PluginFormInterface {
/**
* Gets the list of referenceable entities.
*
* @param string|null $match
* (optional) Text to match the label against. Defaults to NULL.
* @param string $match_operator
* (optional) Operator to be used for string matching. Defaults to
* "CONTAINS".
* @param int $limit
* (optional) Limit the query to a given number of items. Defaults to 0,
* which indicates no limiting.
*
* @return array
* A nested array of entities, the first level is keyed by the
* entity bundle, which contains an array of entity labels (escaped),
......@@ -27,6 +36,12 @@ public function getReferenceableEntities($match = NULL, $match_operator = 'CONTA
/**
* Counts entities that are referenceable.
*
* @param string $match
* (optional) Text to match the label against. Defaults to NULL.
* @param string $match_operator
* (optional) Operator to be used for string matching. Defaults to
* "CONTAINS".
*
* @return int
* The number of referenceable entities.
*/
......@@ -35,6 +50,9 @@ public function countReferenceableEntities($match = NULL, $match_operator = 'CON
/**
* Validates which existing entities can be referenced.
*
* @param array $ids
* An array of IDs to validate.
*
* @return array
* An array of valid entity IDs.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment