47 if (empty($options[
'source'])) {
48 throw new \InvalidArgumentException(
'[' . $icon->
getIdentifier() .
'] The option "source" is required and must not be empty', 1440754980);
51 $source = $options[
'source'];
53 if (strpos($source,
'EXT:') === 0 || strpos($source,
'/') !== 0) {
54 $source = GeneralUtility::getFileAbsFileName($source);
69 if (empty($options[
'source'])) {
70 throw new \InvalidArgumentException(
'The option "source" is required and must not be empty', 1471460676);
73 $source = $options[
'source'];
75 if (strpos($source,
'EXT:') === 0 || strpos($source,
'/') !== 0) {
76 $source = GeneralUtility::getFileAbsFileName($source);
79 if (!file_exists($source)) {
84 '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %1$d %2$d" width="%1$d" height="%2$d"><image width="%1$d" height="%1$d" xlink:href="%3$s"/></svg>',