ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
01-estimated-reading-time.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21function estimatedReadingTime(): bool
22{
23 global $DIC;
24
25 $refinery = $DIC->refinery();
26
27 $transformation = $refinery->string()->estimatedReadingTime(true);
28
29 $result = $transformation->transform('Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <img src="#"/> ...');
30
31 return assert(1 === $result);
32}
global $DIC
Definition: shib_login.php:26