public function TagServiceInterface::getTags in TagCloud 8
Same name and namespace in other branches
- 2.0.x src/TagServiceInterface.php \Drupal\tagclouds\TagServiceInterface::getTags()
- 1.0.x src/TagServiceInterface.php \Drupal\tagclouds\TagServiceInterface::getTags()
Return an array of tags.
Gets the information from the database, passes it along to the weight builder and returns these weighted tags. Note that the tags are unordered at this stage, hence they need ordering either by calling sortTags() or by your own ordering data.
Parameters
array $vids: Vocabulary ids representing the vocabularies where you want the tags from.
int $steps: (optional) The amount of tag-sizes you will be using. If you give "12" you still get six different "weights". Defaults to 6.
int $size: (optional) The number of tags that will be returned. Default to 60.
string $display: (optional) The type of display "style"=weighted,"count"=numbered display.
Return value
array An <em>unordered</em> array with tags-objects, containing the attribute $tag->weight.
1 method overrides TagServiceInterface::getTags()
- TagService::getTags in src/
TagService.php - Return an array of tags.
File
- src/
TagServiceInterface.php, line 51
Class
- TagServiceInterface
- Interface TagServiceInterface.
Namespace
Drupal\tagcloudsCode
public function getTags(array $vids, $steps = 6, $size = 60, $display = NULL);