[ 'id' => [ 'name' => 'Identifier', 'type' => 'text', 'description' => 'An identifier of the shape [a-z]-[0-9]*. Found at the end of the target URL.', 'exampleValue' => 's-60040484' ] ] ]; const XPATH_EXPRESSION_ITEM = '//div[@class="teaser-wrap"]/a'; const XPATH_EXPRESSION_ITEM_TITLE = './@title'; const XPATH_EXPRESSION_ITEM_URI = './@href'; // not given // const XPATH_EXPRESSION_ITEM_AUTHOR = const XPATH_EXPRESSION_ITEM_TIMESTAMP = './/time/@datetime'; // requires javascript // const XPATH_EXPRESSION_ITEM_ENCLOSURES = './figure/img[2]/@src'; const XPATH_EXPRESSION_ITEM_CATEGORIES = './div[2]/span[1]/text()'; public function getIcon() { return 'https://learngerman.dw.com/favicon.png'; } public function getSourceUrl() { return self::URI . $this->getInput('id'); } }