parseAttributes(); $componentName = $att['name']; $reader->parseInnerTree(); if (!is_string($componentName)) { throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}comp-filter requires a valid name attribute'); } return $componentName; } }