43 if (empty($options[
'name'])) {
44 throw new \InvalidArgumentException(
'The option "name" is required and must not be empty', 1440754978);
46 if (preg_match(
'/^[a-zA-Z0-9\\-]+$/', $options[
'name']) !== 1) {
47 throw new \InvalidArgumentException(
'The option "name" must only contain characters a-z, A-Z, 0-9 or -', 1440754979);
50 return '<span class="icon-unify"><i class="fa fa-' . htmlspecialchars($options[
'name']) .
'"></i></span>';