tlh 8.x-1.22

Bug fixes

Implemented the globals, and changed deprecated twig_simple_* functions into their new Twig* counterpart.

tlh 8.x-1.20

No changes just added core_version_requirement: ^8 || ^9 to the module.info

tlh 8.x-1.9

Bug fixes

the 1.8 was not supposed to be promoted to a full release because it was not tested.

tlh 8.x-1.8

New features

Added a function to embed any content entity directly into the template
Added a filter that allows any public accessible image through a imagefilter

tlh 8.x-1.7

New features

Added experimental, yet stable feature to return the [content] of a lazybuild block.

tlh 8.x-1.7-beta1

New features

Rewriting the renderValueIfNeeded method, this might cause some issues with existing templates (hence the BETA)
Added |value filter that return the raw value from a field.

Assuming that field_paragraph_color is a value list with a field-formatter set to return the key of the key|label pair the code below would set the raw key value to the color

tlh 8.x-1.5

Bug fixes

Stupid me forgot the use Drupal\views\Views; in the Drupal.org version :(

tlh 8.x-1.4

Bug fixes

Rewrote the drupal_view function and added support for view arguments.

Return the render array for the default display of the view 'my_view' with contextual parameters /all/167


or if you need to get a specific display

Return the render array for the block_1 display of the view  'my_view'  with contextual parameters /all/167

<code {{ drupal_view('my_view','block_1',['all',167]) }}

Both parameters and display are optional.

tlh 8.x-1.3

Bug fixes

Bugfix in the render array detection. Assumed something that is not always true.

tlh 8.x-1.2

New features

Updated documentation in the readme.md file.
Postfix the functions and filters with Function or Filter.
Added support for rendering values before filters if needed.
Added Truncate filter from http://twig.sensiolabs.org/doc/extensions/text.html#truncating-text
Added xdebug_break function inspired by https://github.com/ajgarlag/AjglBreakpointTwigExtension

tlh 8.x-1.1

Bug fixes

Added a check if $request is not null on setting the global vars.
This prevents CLI tools like Console crashing with "Error: Call to a member function isSecure()".

tlh 8.x-1.0

New features

Added a base_url global that holds the Base URl of the site, including http or https (depending on the request being secured or not.
Added a readme.md for convience.

tlh 8.x-1.0-alpha1

Bug fixes

Alpha 1, nothing new. Only renamed the namespace, service name to tlh instead of Themers_Little_Helper.

tlh 8.x-1.x-dev

New features

Please do note this is a development version.

In this release :

Lazy themer

Wrap filter
{{ content.title_field|wrap('h3') }}
Gives you
<h3>Title</h3>

For those days you don't feel like creating a separate field template or use a GUI tool just to add a H3 around a field.

Context Lite (tm)

Embed a view direct in your template.

Subscribe with RSS Subscribe to Releases for Themers Little Helper