[uml] ITagFactory

TODO: this content is incomplete, unfinished, or under construction.

Webel module:


UML element type:

OOE stereotypes:

Relationships (inverse)
UML Diagram
Click on the UML diagram to view it in a lightbox image viewer. You may then zoom in (or just open the image in a new web browser tab using the Download Original link to view large diagrams).

UML modelling domain:


Cover more XHTML/HTML5 tag cases, so far just enough to demonstrate the concept.

In the OOE approach one should never use Drupal render arrays directly, or the structures within render arrays that represent tags directly. Instead, render arrays are handled by IRender objects, which in turn can handle ITag objects, which can possibly have knowledge of - for example - the attributes and values of attributes permitted for a given XHTML/HTML5 tag.

Implementations of ITag can be created directly, but are best created via a factory, as shown. One can fetch an ITag for a specific XHTML tag parametrically by name using the newTag(name,attributes) creation method, or by known name using one of the specific creators.

Visit also