Download the PHP package as-cornell/as_entity_list without Composer
On this page you can find all versions of the php package as-cornell/as_entity_list. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download as-cornell/as_entity_list
More information about as-cornell/as_entity_list
Files in as-cornell/as_entity_list
Package as_entity_list
Short Description Lists of people, articles or taxonomy term with selectors for number of items, tag filter, view mode.
License GPL-3.0-or-later
Homepage https://communications.as.cornell.edu
Informations about the package as_entity_list
AS ENTITY LIST (as_entity_list)
INTRODUCTION
Lists of people, articles or taxonomy term with selectors for number of items, tag filter, view mode. Returns entities as a list via a twig filter for inclusion in twig templates using twig tweak.
MAINTAINERS
Current maintainers for Drupal 10:
- Mark Wilson (markewilson)
ARCHITECTURE
This module uses a service-oriented architecture with three query service classes and a Twig extension for template integration.
Service Classes
All entity query logic is organized into service classes under src/Service/:
ArticleQueryService (as_entity_list.article_query)
getArticles($count, $tags)- Get articles filtered by tagsgetArticlesFiltered($count, $tags)- Advanced filtering with operator, sort optionsgetArticlesFooter($count, $nid)- Get articles excluding current NID (for footer display)getArticlesPerson($count, $nid)- Get articles related to person (field_related_people)getArticlesPersonAs($count, $nid)- Get articles related to person (field_related_people_nodes)getArticlesDepartment($count, $tags)- Get articles filtered by department/program
PersonQueryService (as_entity_list.person_query)
getPeople($count, $tags)- Get people sorted alphabetically by last namegetPeopleDepartment($count, $tags)- Get people filtered by department with advanced optionsgetPeopleResearch($count, $tags)- Get people filtered by research area
TermQueryService (as_entity_list.term_query)
getTerms($type, $count)- Get terms from a vocabularygetTermsFiltered($type, $count, $tags)- Advanced term filtering for DPC/MMG lists
Twig Extension
buildEntityList (as_entity_list.buildEntityList)
Extends Twig with the build_entity_list() function for use in templates:
Supported Types:
article- Articles filtered by tagsarticle_as- Articles with advanced filteringarticle_footer- Articles for footer (excludes current)article_person- Articles by person (field_related_people)article_department- Articles by department/programperson- People alphabeticallyperson_department- People by departmentperson_research- People by research areadpc_as- Department/Program/Center terms filteredmmg_as- Major/Minor/Gradfield terms filteredacademic_interests- Academic interest termsresearch_areas- Research area terms