DrupalX

Extension
Framework

Entity

This class is a wrapper around the ubiquitous native Entity class of Drupal 8 (Drupal\Core\Entity\Entity) from which all specialized Entity objects (Nodes, Paragraphs, etc.) in Drupal are derived. It can be used instead as a more convenient replacement. First and foremost, this is benefical, because you can use DrupalX's field name mapping with this class - in consequence allowing you to often omit the repetitive field_ prefix. In addition, this class greatly simplifies the process of searching for entities (Entity query), rendering of specific entity fields and much more.

Methods

Factory
load
Factory
query
Factory
queryAll