Same name and namespace in other branches
  1. 9.1.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  2. 9.0.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  3. 9.2.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  4. 8.9.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  5. 8.0.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  6. 8.1.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  7. 8.2.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  8. 8.3.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  9. 8.4.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  10. 8.5.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  11. 8.6.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()
  12. 8.7.x vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getHtml()

Returns element inner html.

Return value

string

Overrides ElementInterface::getHtml

File

vendor/behat/mink/src/Element/Element.php, line 182

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function getHtml() {
  return $this
    ->getDriver()
    ->getHtml($this
    ->getXpath());
}