protected function EmbeddedScheduledUpdateTypeTestBase::getButtonName in Scheduled Updates 8
Gets IEF button name.
Copied from IEF module.
Parameters
string $xpath: Xpath of the button.
Return value
string|null The name of the button.
1 call to EmbeddedScheduledUpdateTypeTestBase::getButtonName()
- EmbeddedScheduledUpdateTypeTestBase::submitIEFForm in tests/
src/ FunctionalJavascript/ EmbeddedScheduledUpdateTypeTestBase.php - Submit a IEF Form with Ajax.
File
- tests/
src/ FunctionalJavascript/ EmbeddedScheduledUpdateTypeTestBase.php, line 175 - Contains \Drupal\Tests\scheduled_updates\EmbeddedScheduledUpdateTypeTestBase.
Class
- EmbeddedScheduledUpdateTypeTestBase
- Base test class for embedded update types.
Namespace
Drupal\Tests\scheduled_updates\FunctionalJavascriptCode
protected function getButtonName($xpath) {
// \Behat\Mink\Element\NodeElement[]
$elements = $this
->xpath($xpath);
if ($elements) {
if ($elements[0]
->hasAttribute('name')) {
return $elements[0]
->getAttribute('name');
}
}
return '';
}