/** * Add an embeds relation * * @param string $url Embedded URL * @param string $label Label */ protected function addEmbedsRelation($url, $label = null) { if (strlen($url) && !array_key_exists($url, $this->embeds)) { $this->embeds[$url] = true; $this->object->addRelation($this->getRelationString($url, $label), Relation::EMBEDS); } }