private function VarbaseContext::_addIDtoIFrame in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 8.7
Same name and namespace in other branches
- 8.4 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_addIDtoIFrame()
- 8.5 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_addIDtoIFrame()
- 8.6 tests/features/bootstrap/VarbaseContext.php \VarbaseContext::_addIDtoIFrame()
Helper function to add an ID to an IFream.
Parameters
string $fieldid field id in drupal.:
string $prefix a prefix which needed for the id.:
File
- tests/
features/ bootstrap/ VarbaseContext.php, line 1490
Class
- VarbaseContext
- Defines application features from the specific context.
Code
private function _addIDtoIFrame($fieldid, $prefix = "ifream-") {
// If the WYSIWYG is in an ifream with no id.
$iFreamID = $this
->_getAttributeByOtherAttributeValue('id', 'title', "Rich Text Editor, " . $fieldid, 'iframe');
if (empty($iFreamID)) {
$ifreamcss = $this
->_getAttributeByOtherAttributeValue('class', 'title', "Rich Text Editor, " . $fieldid, 'iframe');
$ifreamcss = str_replace(" ", ".", $ifreamcss);
if (strpos($ifreamcss, ".") > 1) {
$ifreamcss = '.' . $ifreamcss;
}
$this
->_updateIDByCSS($ifreamcss, $fieldid, $prefix);
}
}